<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>系统设置</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  {include file="public/css"/}
	<style>
		.checkbox-text { display: inline-block;vertical-align: middle;}
		.commission_frozen .layui-form-checkbox {float: left;}
		.commission_frozen_row {overflow: hidden;margin-bottom: 5px;}
		/*加载图标预览*/
		.ldPicList{display: flex;}
		.ldPicList .layui-imgbox{width: 20px;height: 20px;position: relative;left: 150px;top: -2px}
		.loadingpic-box{display: flex;flex-direction: column;align-items: center;margin-right: 20px;width: 120px;padding: 10px;border-radius: 4px;background: #f4f4f4}
		.loadingpic-box.active{background: #38ada2}
		.loading-img{background: #FFF;border: 1px solid #e2e2e2;display: flex;justify-content: center;width: 90px;height: 90px;border-radius: 2px}
		.loading-img img{max-height: 100%;max-width: 100%}
		.loading-preview{background: #FFF;width: 120px;height: 120px;
			display: flex;align-items: center;justify-content: center;border: 1px solid #e2e2e2;margin-top: 5px;border-radius: 4px}
		.loading-preview img{height: 80px;width: 80px;}
		.loading-preview .animation0{animation: loading 1.5s linear 0s infinite;}
		.loading-preview .animation1{animation: loading 1.3s ease 0s infinite;}
		@keyframes loading {0% {transform: rotate(0);}100% {transform: rotate(360deg);}}
		@-webkit-keyframes loading {0% {transform: rotate(0);}100% {transform: rotate(360deg);}}
		.layui-imgbox .layui-icon{font-size:25px;}
		.layui-imgbox-close{width: 25px;height: 22px;right: -18px;top:-10px;z-index: 3;}
	</style>
</head>
<body>
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-card layui-col-md12">
				<div class="layui-card-header"><i class="fa fa-cog"></i> 系统设置</div>
				<div class="layui-card-body" pad15>
					<div class="layui-form form-label-w8" lay-filter="">
						<div class="layui-tab layui-tab-brief" lay-filter="mytab">
							<ul class="layui-tab-title">
								<li class="layui-this" lay-id="1">基础设置</li>
								<li lay-id="4">财务设置</li>
								<li lay-id="5">积分设置</li>
								<li lay-id="6">分销分红</li>
								<li lay-id="7">文本自定义</li>
								<li lay-id="8">登录注册</li>
								<li lay-id="9">注册协议</li>
								<li lay-id="10">附件设置</li>
								{if getcustom('jushuitan')}
								{if $admin['jushuitan_status']==1}
									<li lay-id="11">聚水潭设置</li>
								{/if}
								{/if}
								<li lay-id="12">加载图标</li>
								{if getcustom('admin_login_page')}
									{if $sysset_webinfo['open_login_page'] == 1}
									<li lay-id="13">独立系统信息</li>
									{/if}
								{/if}
							</ul>
							<div class="layui-tab-content">
								<div class="layui-tab-item layui-show">
									<div class="layui-form-item">
										<label class="layui-form-label">商家名称：</label>
										<div class="layui-input-inline">
											<input type="text" name="info[name]" class="layui-input" value="{$info['name']}">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">商家LOGO：</label>
										<input type="hidden" name="info[logo]" id="logo" class="layui-input" value="{$info['logo']}">
										<button style="float:left;margin-right: 10px" type="button" class="layui-btn layui-btn-primary" onclick="uploader(this)" upload-input="logo" upload-preview="logoPreview">上传图片</button>
										<div class="layui-form-mid layui-word-aux">建议尺寸：200×200像素</div>
										<div id="logoPreview" class="picsList-class-padding">
											<div class="layui-imgbox" style="width:100px;"><div class="layui-imgbox-img"><img src="{$info['logo']}"/></div></div>
										</div>
									</div>

<!--									<div class="layui-form-item">-->
<!--										<label class="layui-form-label">商家照片：</label>-->
<!--										<input type="hidden" name="info[pics]" value="{$info['pics']}" id="pics">-->
<!--										<button style="float:left;" type="button" class="layui-btn layui-btn-primary" onclick="uploader(this,true)" upload-input="pics" upload-preview="picList" >批量上传</button>-->
<!--										<div class="layui-form-mid layui-word-aux" style="margin-left:10px;">建议尺寸：600*340像素</div>-->
<!--										<div id="picList" style="float:left;padding-top:10px;padding-left:160px;clear: both;">-->
<!--											{if $info['pics']}-->
<!--											{php}$pics = explode(',',$info['pics']);{/php}-->
<!--											{foreach $pics as $pic}-->
<!--											<div class="layui-imgbox" style="margin-right: 20px;">-->
<!--												<a class="layui-imgbox-close" href="javascript:void(0)" onclick="$(this).parent().remove();getpicsval('pics','picList')" title="删除"><i class="layui-icon layui-icon-close-fill"></i></a>-->
<!--												<span class="layui-imgbox-img" style="height: auto;"><img src="{$pic}" onclick="previewImg('{$pic}')"></span>-->
<!--											</div>-->
<!--											{/foreach}{/if}-->
<!--										</div>-->
<!--									</div>-->
									{if getcustom('show_location')}
									<div class="layui-form-item">
										<label class="layui-form-label">系统模式：</label>
										<div class="layui-input-inline" style="width:80%">
											<input type="radio" name="info[mode]" value="0" {if $info['mode']==0}checked{/if} title="商城模式" lay-skin="primary" lay-filter="shopmode">
											{if getcustom('loc_business')}
											<input type="radio" name="info[mode]" value="1" {if $info['mode']==1}checked{/if} title="商户门店模式" lay-skin="primary" lay-filter="shopmode">
											{/if}
											{if getcustom('location_city_address')}
											<input type="radio" name="info[mode]" value="2" {if $info['mode']==2}checked{/if} title="定位模式" lay-skin="primary" lay-filter="shopmode">
											{/if}
											{if getcustom('location_mendian')}
											<input type="radio" name="info[mode]" value="3" {if $info['mode']==3}checked{/if} title="门店模式" lay-skin="primary" lay-filter="shopmode">
											{/if}
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">
											商城模式：传统在线商城；
											{if getcustom('loc_business')}
											<br>商户门店模式：根据定位显示最近商户首页，不显示平台页面；
											{/if}
											{if getcustom('location_city_address')}
											<br>定位模式：根据用户位置，显示范围内的商家和商品信息；
											{/if}
											{if getcustom('location_mendian')}
											<br>门店模式：根据组件归属门店，显示对应的门店和商品信息等；
											{/if}<br>
										</div>
									</div>
									{if getcustom('loc_business')}
									<div id="mode_1" {if $info.mode!=1}style="display:none"{/if}>
										<div class="layui-form-item">
											<label class="layui-form-label">显示商户：</label>
											<div class="layui-input-inline" style="width:40%">
												<input type="radio" name="info[loc_business_show_type]" value="0" {if $info['loc_business_show_type']==0}checked{/if} title="距离最近" lay-skin="primary" >
												<input type="radio" name="info[loc_business_show_type]" value="1" {if $info['loc_business_show_type']==1}checked{/if} title="推荐人商户" lay-skin="primary">
											</div>
										</div>
									</div>
									{/if}
									<div id="mode_2" {if $info.mode!=2}style="display:none"{/if}>
										<div class="layui-form-item">
											<label class="layui-form-label">定位显示：</label>
											<div class="layui-input-inline" style="width:40%">
												<input type="radio" name="info[loc_area_type]" value="0" {if $info['loc_area_type']==0}checked{/if} title="当前城市" lay-skin="primary" >
												<input type="radio" name="info[loc_area_type]" value="1" {if $info['loc_area_type']==1}checked{/if} title="当前地址" lay-skin="primary">
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">显示范围：</label>
											<div class="layui-input-inline">
												<input type="radio" name="info[loc_range_type]" value="0" {if $info['loc_range_type']==0}checked{/if} title="同城" lay-skin="primary" lay-filter="loc_range_type">
												<input type="radio" name="info[loc_range_type]" value="1" {if $info['loc_range_type']==1}checked{/if} title="自定范围" lay-skin="primary" lay-filter="loc_range_type">
											</div>
											<div id="loc_range_block" {if $info.loc_range_type!=1}style="display:none"{else/}style="display: inline-block"{/if}>
												<div class="layui-form-mid">附近</div>
												<div class="layui-input-inline" style="width:120px">
													<input type="text" name="info[loc_range]" value="{$info[loc_range]}" class="layui-input">
												</div>
												<div class="layui-form-mid">Km</div>
											</div>
										</div>
									</div>
									{/if}
									<div class="layui-form-item">
										<label class="layui-form-label">商家简介：</label>
										<div class="layui-input-inline" style="width:600px">
											<input type="text" name="info[desc]" value="{$info['desc']}" class="layui-input">
										</div>
									</div>
									{if getcustom('shop_other_infor')}
										<div class="layui-form-item">
											<label class="layui-form-label">主营业务：</label>
											<div class="layui-input-inline" style="width:600px">
												<input type="text" name="info[main_business]" class="layui-input" value="{$info['main_business']}">
											</div>
											<div class="layui-form-mid layui-word-aux">在商品列表价格下面展示主营业务息，建议20字以内</div>
										</div>
									{/if}
									<div class="layui-form-item">
										<label class="layui-form-label">商家服务电话：</label>
										<div class="layui-input-inline">
											<input type="text" name="info[tel]" value="{$info['tel']}" class="layui-input">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">商家地址：</label>
										<div class="layui-input-inline">
											<input type="text" name="info[address]" value="{$info['address']}" class="layui-input">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">经纬度：</label>
										<div class="layui-input-inline" style="width:150px">
											<input type="text" name="info[longitude]" value="{$info['longitude']}" class="layui-input">
										</div>
										<div class="layui-form-mid">-</div>
										<div class="layui-input-inline" style="width:150px">
											<input type="text" name="info[latitude]" value="{$info['latitude']}" class="layui-input">
										</div>
										<button class="layui-btn layui-btn-primary" onclick="choosezuobiao()" style="float:left">选择坐标</button>
									</div>
									<!-- <div class="layui-form-item" {if !in_array('mp',$platform)}style="display:none"{/if}>
										<label class="layui-form-label" style="width:130px">客服系统链接：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="text" name="info[kfurl]" value="{$info['kfurl']}" class="layui-input">
										</div>
										<div class="layui-form-mid layui-word-aux" style="margin-left:10px;">商品详情页客服链接，不填写则使用商城内部客服系统</div>
									</div> -->

									<!-- <div class="layui-form-item">
										<label class="layui-form-label">客服系统链接：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="text" name="info[kfurl]" value="{$info.kfurl}" class="layui-input"/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">商品详情页客服链接，不填写则使用商城内部客服系统</div>
										<div class="layui-form-mid layui-popover layui-default-link">
											示例
											<div class="layui-popover-div">
												<img src="__STATIC__/admin/img/dianda_kefu.png"/>
											</div>
										</div>
									</div> -->

									<div class="layui-form-item" {if !in_array('wx',$platform)}style="display:none"{/if}>
										<label class="layui-form-label">微信小程序客服：</label>
										<div class="layui-input-inline" style="width:360px">
											<input type="radio" name="info[wxkf]" value="0" {if $info['wxkf']==0}checked{/if}  title="客服链接" lay-skin="primary" lay-filter="wxkfset">
											<input type="radio" name="info[wxkf]" value="1" {if $info['wxkf']==1}checked{/if} title="小程序客服" lay-skin="primary" lay-filter="wxkfset">
											<input type="radio" name="info[wxkf]" value="2" {if $info['wxkf']==2}checked{/if} title="微信客服" lay-skin="primary" lay-filter="wxkfset">
										</div>
										<div {if $info['wxkf']==1}style="display:none"{/if} id="wxkfurl">
											<div class="layui-form-mid">客服链接：</div>
											<div class="layui-input-inline" style="width:220px">
												<input type="text" name="info[wxkfurl]" value="{$info['wxkfurl']}" class="layui-input">
											</div>
											</div>
											<div {if $info['wxkf']!=2}style="display:none"{/if} id="wxkfcorpid">
											<div class="layui-form-mid">企业ID：</div>
											<div class="layui-input-inline" style="width:170px">
												<input type="text" name="info[corpid]" value="{$info['corpid']}" class="layui-input">
											</div>
										</div>
										<div {if $info['wxkf']!=1}style="display:none"{/if} class="wxkf1set">
											<div class="layui-form-mid">客服人员：</div>
											<div class="layui-input-inline" style="width:170px">
												<select name="info[wxkftransfer]">
													<option value="0" {if $info['wxkftransfer']==0}selected{/if}>系统管理员</option>
													<option value="1" {if $info['wxkftransfer']==1}selected{/if}>小程序客服</option>
												</select>
											</div>
											<span class="layui-form-mid">选择系统管理员时需要配置消息推送</span>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">
										客服链接：使用填写的客服链接，不填写则使用商城内部客服系统；如使用电话客服，链接格式为：tel:0539-123456；<br>
										小程序客服：在小程序后台-功能-客服-小程序客服，配置客服人员；<br>
										微信客服：在<a href="https://work.weixin.qq.com/kf" target="_blank">微信客服</a>系统注册账号并绑定，<a href="https://work.weixin.qq.com/nl/act/p/229e9eb2c10f417a" target="_blank">查看绑定流程</a>，填写企业ID并复制客服链接填写到客服链接处
										</div>
									</div>
			
									<div class="layui-form-item" {if !in_array('wx',$platform)}style="display:none"{/if}>
										<label class="layui-form-label">公众号关注组件：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[official_account_status]" value="1" title="开启" {if $info['official_account_status']==1}checked{/if}>
											<input type="radio" name="info[official_account_status]" value="0" title="关闭" {if $info['official_account_status']==0}checked{/if}>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">仅微信小程序端生效（支持场景：扫描二维码、扫描小程序码），设置方式：小程序后台，在“设置”->“关注公众号”中设置要展示的公众号</div>
									</div>
					{if getcustom('member_vip_edit')}
									<div class="layui-form-item">
										<label class="layui-form-label">会员无订单天数：</label>
										<div class="layui-input-inline" >
											<input type="text" name="info[member_vip_no_order_days]" value="{$info.member_vip_no_order_days}" class="layui-input"/>
										</div>
										<div class="layui-form-mid">天</div>
										<div class="layui-form-mid layui-word-aux layui-clear">普通客户升级为vip，x天内没订单，变成普通用户</div>
									</div>
	
						<div class="layui-form-item">
							<label class="layui-form-label">会员当天无订单：</label>
							<div class="layui-input-inline">
								<input type="radio" name="info[member_no_order_expire_status]" value="1" title="开启" {if $info['member_no_order_expire_status']==1}checked{/if}>
								<input type="radio" name="info[member_no_order_expire_status]" value="0" title="关闭" {if $info['member_no_order_expire_status']==0}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux layui-clear">普通客户被设置成vip后，当天必须下单，不下单，第二天自动变成普通用户</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">会员无订单天数：</label>
							<div class="layui-input-inline" >
								<input type="text" name="info[member_vip_no_order_days]" value="{$info.member_vip_no_order_days}" class="layui-input"/>
							</div>
							<div class="layui-form-mid">天</div>
							<div class="layui-form-mid layui-word-aux layui-clear">普通客户升级为vip，x天内没订单，变成普通用户</div>
						</div>
					{/if}
						{if getcustom('agent_card') && $ainfo['agent_card'] == 1}
						<div class="layui-form-item">
							<label class="layui-form-label">代理卡片：</label>
							<div class="layui-input-inline">
								<input type="radio" name="info[agent_card]" value="1" title="开启" {if $info['agent_card']==1}checked{/if}>
								<input type="radio" name="info[agent_card]" value="0" title="关闭" {if $info['agent_card']==0}checked{/if}>
							</div>
						</div>
						{/if}
									<div class="layui-form-item" {if !in_array('mp',$platform)}style="display:none"{/if}>
										<label class="layui-form-label">关注提示：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="checkbox" name="gzts[]" value="1" {if in_array('1',explode(',',$info['gzts']))}checked{/if} title="首页" lay-skin="primary">
											<input type="checkbox" name="gzts[]" value="2" {if in_array('2',explode(',',$info['gzts']))}checked{/if}  title="商品详情页" lay-skin="primary">
										</div>
										<div class="layui-form-mid layui-word-aux">仅公众号端有效</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">订单播报：</label>
										<div class="layui-input-inline" style="width:400px">
											<input type="checkbox" name="ddbb[]" value="1" {if in_array('1',explode(',',$info['ddbb']))}checked{/if} title="首页" lay-skin="primary">
											<input type="checkbox" name="ddbb[]" value="2" {if in_array('2',explode(',',$info['ddbb']))}checked{/if}  title="商品详情页" lay-skin="primary">
											{if getcustom('ngmm')}
											<input type="checkbox" name="ddbb[]" value="3" {if in_array('3',explode(',',$info['ddbb']))}checked{/if} title="拼团" lay-skin="primary">
											<input type="checkbox" name="ddbb[]" value="4" {if in_array('4',explode(',',$info['ddbb']))}checked{/if} title="秒杀" lay-skin="primary">
											{/if}
											{if getcustom('ddbb_luckycollage')}
											<input type="checkbox" name="ddbb[]" value="5" {if in_array('5',explode(',',$info['ddbb']))}checked{/if} title="幸运拼团" lay-skin="primary">
											{/if}
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">首页或商品详情页滚动显示最近购买信息</div>
									</div>
									{if getcustom('ngmm')}
									<div class="layui-form-item">
										<label class="layui-form-label">订单播报链接：</label>
										<div class="layui-input-inline">
											<input class="layui-input" name="info[ddbbtourl]" value="{$info.ddbbtourl}" id="ddbbtourl"/>
										</div>
										<div class="layui-btn layui-btn-primary" style="float:left" onclick="chooseUrl2('ddbbtourl')">选择链接</div>
										<div class="layui-form-mid layui-word-aux">不填写默认跳转到商品详情页</div>
									</div>
									{/if}
									<div class="layui-form-item">
										<label class="layui-form-label">主色调：</label>
										<div class="layui-input-inline">
											<input type="text" name="info[color1]" value="{$info['color1']}" class="layui-input">
										</div>
										<div class="_colorpicker" style="float:left"></div>
										<div class="layui-form-mid layui-word-aux">商城主色调，如：#FD4A46</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">辅色调：</label>
										<div class="layui-input-inline">
											<input type="text" name="info[color2]" value="{$info['color2']}" class="layui-input">
										</div>
										<div class="_colorpicker" style="float:left"></div>
										<div class="layui-form-mid layui-word-aux">商城辅色调，如：#7E71F6</div>
									</div>
									{if getcustom('index_fav_tip')}
									<div class="layui-form-item" {if !in_array('wx',$platform)}style="display:none"{/if}>
										<label class="layui-form-label">小程序收藏提示：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[indexfavtip]" value="1" title="开启" {if $info['indexfavtip']==1}checked{/if}>
											<input type="radio" name="info[indexfavtip]" value="0" title="关闭" {if $info['indexfavtip']==0}checked{/if}>
										</div>
										<div class="layui-form-mid layui-word-aux">微信小程序，首次打开首页右上角提示添加到桌面并收藏</div>
									</div>
									{/if}
									<div class="layui-form-item">
										<label class="layui-form-label">进入条件：</label>
										<div class="layui-input-inline" style="width:800px">
											<input type="checkbox" name="info[gettj][]" value="-1" title="所有人" lay-skin="primary" {if in_array('-1',$info['gettj'])}checked{/if} lay-filter="gettjset"/>
											{foreach $levellist as $v}
											<input type="checkbox" name="info[gettj][]" value="{$v.id}" title="{$v.name}" lay-skin="primary" {if in_array($v['id'],$info['gettj'])}checked{/if}/>
											{/foreach}
										</div>
									</div>
									<div id="gettjset" {if !$info['id'] || in_array('-1',$info['gettj'])}style="display:none"{/if}>
										<div class="layui-form-item">
											<div class="layui-form-label">无权限提示：</div>
											<div class="layui-input-inline">
												<input class="layui-input" name="info[gettjtip]" value="{if !$info['id']}您没有权限进入{else}{$info.gettjtip}{/if}"/>
											</div>
											<div class="layui-form-mid"></div>
										</div>
									</div>

									{if getcustom('edit_locking') && $isadmin>0}
									<div class="layui-form-item">
										<label class="layui-form-label">开锁密码：</label>
										<div class="layui-input-inline">
											<input type="password" name="info[locking_pwd]" value="{$info.locking_pwd}" class="layui-input"/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear"></div>
									</div>
									{/if}
									{if getcustom('system_copy')}
									<div class="layui-form-item">
										<label class="layui-form-label" style="width:130px">剪贴板：</label>
										<div class="layui-input-inline" style="width:300px">
											<textarea type="text" name="info[copyinfo]" class="layui-textarea">{$info['copyinfo']}</textarea>
										</div>
										<div class="layui-form-mid layui-word-aux" style="margin-left:10px;">若设置内容，前端页面将自动复制到剪贴板上</div>
									</div>
									{/if}
								</div>

								<div class="layui-tab-item">
									<fieldset class="layui-elem-field layui-field-title"  style="margin-top: 30px;">
										<legend>余额</legend>
									</fieldset>
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('余额')}支付：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[moneypay]" title="开启" value="1" {if $info['moneypay']==1}checked{/if}/>
											<input type="radio" name="info[moneypay]" title="关闭" value="0" {if $info['moneypay']==0}checked{/if}/>
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('余额')}充值：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[recharge]" title="开启" value="1" {if $info['recharge']==1}checked{/if}/>
											<input type="radio" name="info[recharge]" title="关闭" value="0" {if $info['recharge']==0}checked{/if}/>
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('佣金')}转{:t('余额')}：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[commission2money]" title="开启" value="1" {if $info['commission2money']==1}checked{/if}/>
											<input type="radio" name="info[commission2money]" title="关闭" value="0" {if $info['commission2money']==0}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">开启后{:t('会员')}可以将{:t('佣金')}直接转入{:t('余额')}中用于消费</div>
									</div>
									{if getcustom('commission_tomoney_need_score')}
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('佣金')}转{:t('余额')}消耗{:t('积分')}：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[comtomoney_need_score]" title="开启" value="1" {if $info['comtomoney_need_score']==1}checked{/if} />
											<input type="radio" name="info[comtomoney_need_score]" title="关闭" value="0" {if $info['comtomoney_need_score']==0}checked{/if} />
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('佣金')}{:t('余额')}兑换比例：</label>
										<div class="layui-input-inline" style="width: 120px;">
											<input type="number" class="layui-input" name="info[commission_money_exchange_num]" value="{$info.commission_money_exchange_num}">
										</div>
										<div class="layui-form-mid layui-word-aux">{:t('佣金')}可兑换1{:t('余额')}</div>
									</div>
									{/if}

									{if getcustom('money_transfer') || getcustom('money_friend_transfer')}
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('余额')}转账：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[money_transfer]" title="开启" value="1" {if $info['money_transfer']==1}checked{/if} lay-filter="diandaSwitch"/>
											<input type="radio" name="info[money_transfer]" title="关闭" value="0" {if $info['money_transfer']==0}checked{/if} lay-filter="diandaSwitch"/>
										</div>
									</div>
									<div diandaSwitch="info[money_transfer]" {if $info['money_transfer'] != 1} style="display:none"{/if}>
										<div class="layui-form-item">
											<label class="layui-form-label">{:t('余额')}转账范围：</label>
											<div class="layui-input-inline" style="width: 60%">
												{if getcustom('money_transfer')}
												<input type="radio" name="info[money_transfer_range]" title="全站" value="0" {if $info['money_transfer_range']==0}checked{/if}/>
												<input type="radio" name="info[money_transfer_range]" title="所有上下级" value="1" {if $info['money_transfer_range']==1}checked{/if}/>
												{/if}
												{if getcustom('money_friend_transfer')}
												<input type="radio" name="info[money_transfer_range]" title="好友" value="2" {if $info['money_transfer_range']==2}checked{/if}/>
												{/if}
											</div>
										</div>
									</div>
									  <div class="layui-form-item">
										  <label class="layui-form-label">{:t('余额')}转账支付密码：</label>
										  <div class="layui-input-inline">
											  <input type="radio" lay-filter="money_transfer_pwd" name="info[money_transfer_pwd]" title="开启" value="1" {if $info['money_transfer_pwd']==1}checked{/if}/>
											  <input type="radio" lay-filter="money_transfer_pwd" name="info[money_transfer_pwd]" title="关闭" value="0" {if $info['money_transfer_pwd']==0}checked{/if}/>
										  </div>
									  </div>
									{/if}
									{if getcustom('money_dec')}
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('余额')}抵扣：</label>
										<div class="layui-input-inline">
											<input type="radio" lay-filter="moneydec" name="info[money_dec]" title="开启" value="1" {if $info['money_dec']==1}checked{/if}/>
											<input type="radio" lay-filter="moneydec" name="info[money_dec]" title="关闭" value="0" {if !$info['money_dec'] || $info['money_dec']==0}checked{/if}/>
										</div>
										<div class="layui-form-mid">注意：商城商品使用{:t('余额')}抵扣后支付页面{:t('余额')}支付将不显示</div>
									</div>
									<div class="layui-form-item" id="money_dec" {if $info['money_dec']!=1}style="display:none"{/if}>
										<label class="layui-form-label">最高抵扣比例：</label>
										<div class="layui-input-inline" style="width: 120px;">
											<input type="number" name="info[money_dec_rate]" value="{$info['money_dec_rate']?$info['money_dec_rate']:0}" class="layui-input"  />
										</div>
										<div class="layui-form-mid">% {:t('余额')}最高抵扣比例</div>
									</div>
									{/if}

									{if getcustom('pay_daifu')}
										<fieldset class="layui-elem-field layui-field-title"  style="margin-top: 30px;">
											<legend>好友代付</legend>
										</fieldset>
										<div class="layui-form-item">
											<label class="layui-form-label">好友代付：</label>
											<div class="layui-input-inline">
												<input type="radio" lay-filter="daifu" name="info[pay_daifu]" title="开启" value="1" {if $info['pay_daifu']==1}checked{/if}/>
												<input type="radio" lay-filter="daifu" name="info[pay_daifu]" title="关闭" value="0" {if !$info['pay_daifu'] || $info['pay_daifu']==0}checked{/if}/>
											</div>
										</div>
										<div class="layui-form-item" id="daifu-desc" {if $info['pay_daifu']!=1}style="display:none"{/if}>
											<label class="layui-form-label">代付说明：</label>
											<div class="layui-input-inline" style="width: 40%;">
												<textarea style="height: 90px" class="layui-textarea" name="info[pay_daifu_desc]">{$info.pay_daifu_desc}</textarea>
											</div>
										</div>
									{/if}

									{if getcustom('plug_yuebao')}
										<fieldset class="layui-elem-field layui-field-title"  style="margin-top: 30px;">
											<legend>余额宝</legend>
										</fieldset>
										<div class="layui-form-item">
											<label class="layui-form-label">是否开启：</label>
											<div class="layui-input-inline">
												<input type="radio" name="info[open_yuebao]" title="开启" value="1" {if $info['open_yuebao']==1}checked{/if} lay-filter="set_yuebao"/>
												<input type="radio" name="info[open_yuebao]" title="关闭" value="0" {if $info['open_yuebao']==0}checked{/if} lay-filter="set_yuebao"/>
											</div>
										</div>
										<div id="yuebaoset" {if !$info || $info['open_yuebao']==0}style="display:none"{/if}>
											<div class="layui-form-item">
												<label class="layui-form-label">余额宝收益利率：</label>
												<div class="layui-input-inline" style="width:120px">
													<input type="text" name="info[yuebao_rate]" value="{$info['yuebao_rate']?$info['yuebao_rate']:0}" class="layui-input"/>
												</div>
												<div class="layui-form-mid">%</div>
											</div>
											<div class="layui-form-item">
												<label class="layui-form-label">收益提现天数：</label>
												<div class="layui-input-inline" style="width:120px">
													<input type="text" name="info[yuebao_withdraw_time]" value="{$info['yuebao_withdraw_time']?$info['yuebao_withdraw_time']:0}" class="layui-input"/>
												</div>
												<div class="layui-form-mid">天 注意：1、必须为整数 2、填0为不限制，填其他数字，如填写10，为每10天可提现一次 3、{:t('会员')}单独设置后此设置失效</div>
											</div>
											<div class="layui-form-item">
												<label class="layui-form-label">收益转余额：</label>
												<div class="layui-input-inline">
													<input type="radio" name="info[yuebao_turn_yue]" title="开启" value="1" {if $info['yuebao_turn_yue']==1}checked{/if}/>
													<input type="radio" name="info[yuebao_turn_yue]" title="关闭" value="0" {if $info['yuebao_turn_yue']==0}checked{/if}/>
												</div>
											</div>
										</div>
									{/if}

									{if getcustom('pay_yuanbao')}
										<fieldset class="layui-elem-field layui-field-title"  style="margin-top: 30px;">
                                            <legend>{:t('元宝')}</legend>
                                        </fieldset>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">{:t('元宝')}支付：</label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="info[yuanbao_pay]" title="开启" value="1" {if $info['yuanbao_pay']==1}checked{/if}/>
                                                <input type="radio" name="info[yuanbao_pay]" title="关闭" value="0" {if $info['yuanbao_pay']==0}checked{/if}/>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">{:t('元宝')}转账：</label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="info[yuanbao_transfer]" title="开启" value="1" {if $info['yuanbao_transfer']==1}checked{/if}/>
                                                <input type="radio" name="info[yuanbao_transfer]" title="关闭" value="0" {if $info['yuanbao_transfer']==0}checked{/if}/>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">与现金兑换比例：</label>
                                            <div class="layui-input-inline" style="width:120px">
                                                <input type="number" name="info[yuanbao_money_ratio]" value="{$info['yuanbao_money_ratio']}" class="layui-input">
                                            </div>
                                            <div class="layui-form-mid">% </div>
                                        </div>
									{/if}
									{if getcustom('wxpay_member_level')}
										<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
											<legend>微信支付</legend>
										</fieldset>
										<div class="layui-form-item">
											<label class="layui-form-label">使用权限：</label>
											<div class="layui-input-inline" style="width:800px">
												<input type="checkbox" name="info[wxpay_gettj][]" value="-1" title="所有人" lay-skin="primary" {if in_array('-1',$info['wxpay_gettj'])}checked{/if}/>
												{foreach $levellist as $v}
												<input type="checkbox" name="info[wxpay_gettj][]" value="{$v.id}" title="{$v.name}" lay-skin="primary" {if in_array($v['id'],$info['wxpay_gettj'])}checked{/if}/>
												{/foreach}
											</div>
										</div>
									{/if}
									<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
										<legend>提现</legend>
									</fieldset>
									<div class="layui-form-item">
										<label class="layui-form-label">提现方式：</label>
										<div class="layui-input-inline" style="width:500px">
											<input type="checkbox" name="info[withdraw_weixin]" title="微信钱包" value="1" {if $info['withdraw_weixin']==1}checked{/if}>
											<input type="checkbox" name="info[withdraw_aliaccount]" title="支付宝" value="1" {if $info['withdraw_aliaccount']==1}checked{/if}/>
											<input type="checkbox" name="info[withdraw_bankcard]" title="银行卡" value="1" {if $info['withdraw_bankcard']==1}checked{/if}/>
											{if getcustom('pay_adapay')}
											<input type="checkbox" name="info[withdraw_adapay]" title="汇付天下银行卡" value="1" {if $info['withdraw_adapay']==1}checked{/if}/>
											{/if}
											{if getcustom('pay_huifu')}
											<input type="checkbox" name="info[withdraw_huifu]" title="汇付斗拱银行卡" value="1" {if $info['withdraw_huifu']==1}checked{/if}/>
											{/if}
											{if $auth_data=='all' || in_array('Xiaoetong/*',$auth_data)}
											{if getcustom('transfer_farsion')}
											<input type="checkbox" name="info[withdraw_aliaccount_xiaoetong]" title="小额通支付宝" value="1" {if $info['withdraw_aliaccount_xiaoetong']==1}checked{/if}/>

											<input type="checkbox" name="info[withdraw_bankcard_xiaoetong]" title="小额通银行卡" value="1" {if $info['withdraw_bankcard_xiaoetong']==1}checked{/if}/>
											{/if}
											{/if}
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">提现到微信钱包需开通企业付款到零钱功能{if getcustom('pay_huifu')}；汇付斗拱银行卡开启后自动替换默认银行卡，用户端需要进件{/if}</div>
									</div>
									{if getcustom('other_money')}
										<div class="layui-form-item">
											<label class="layui-form-label">其他{:t('余额')}提现：</label>
											<div class="layui-input-inline" style="width:200px">
												<input type="radio" name="info[othermoney_withdraw]" value="0" title="关闭" {if $info['othermoney_withdraw']==0}checked{/if}/>
												<input type="radio" name="info[othermoney_withdraw]" value="1" title="开启" {if $info['othermoney_withdraw']==1}checked{/if}/>
											</div>
										</div>
									{/if}
									<div class="layui-form-item">
										<label class="layui-form-label">自动打款：</label>
										<div class="layui-input-inline" style="width:200px">
											<input type="radio" name="info[withdraw_autotransfer]" value="0" title="关闭" {if $info['withdraw_autotransfer']==0}checked{/if}/>
											<input type="radio" name="info[withdraw_autotransfer]" value="1" title="开启" {if $info['withdraw_autotransfer']==1}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux">开启后提现到微信钱包时不需要审核，自动用企业付款打款，需开通企业付款到零钱功能</div>
									</div>
									<div id="withdrawotherset">
										<div class="layui-form-item">
											<label class="layui-form-label">日提现次数：</label>
											<div class="layui-input-inline" style="width:120px">
												<input type="number" name="info[day_withdraw_num]" value="{$info['day_withdraw_num']}" class="layui-input"/>
											</div>
											<div class="layui-form-mid">次</div><div class="layui-form-mid layui-word-aux">{:t('会员')}每日{:t('余额')}和{:t('佣金')}可提现总次数，设为0时为无限制提现</div>
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">提现说明：</label>
										<div class="layui-input-inline" style="width: 40%;">
											<textarea style="height: 90px" class="layui-textarea" name="info[withdraw_desc]">{$info.withdraw_desc}</textarea>
										</div>
									</div>
									{if getcustom('alipay_auto_transfer')}
										<fieldset class="layui-elem-field">
											<legend>支付宝打款</legend>
											<div class="layui-field-box">
												<div class="layui-form-item">
													<label class="layui-form-label">支付宝自动打款：</label>
													<div class="layui-input-inline">
														<input type="radio" name="info[ali_withdraw_autotransfer]" value="0" title="关闭" {if $info['ali_withdraw_autotransfer']==0}checked{/if}/>
														<input type="radio" name="info[ali_withdraw_autotransfer]" value="1" title="开启" {if $info['ali_withdraw_autotransfer']==1}checked{/if}/>
													</div>
													<div class="layui-form-mid layui-word-aux">开启后提现到支付宝时不需要审核，自动用转账到支付宝账户，需开通转账到支付宝账户</div>
												</div>

												<div id="aliWithdrawSet">
													<div class="layui-form-item">
														<label class="layui-form-label">支付宝APPID：</label>
														<div class="layui-input-inline">
															<input type="text" name="info[ali_appid]" value="{$info['ali_appid']}" class="layui-input"/>
														</div>
														<div class="layui-form-mid layui-word-aux">支付宝分配给开发者的应用ID</div>
													</div>
													<div class="layui-form-item">
														<label class="layui-form-label">应用私钥：</label>
														<div class="layui-input-inline" style="width:700px">
															<input type="text" name="info[ali_privatekey]" value="{$info['ali_privatekey']}" class="layui-input"/>
															{if $info['ali_privatekey']}<div style="position: absolute;left: 0;top: 0;right: 0;bottom: 0; background: #fff;padding: .35rem .7rem;border: 1px solid rgba(0, 0, 0, .15);border-radius: .15rem;color: #636c72;" onclick="$(this).hide()">已隐藏内容，点击查看或编辑</div>{/if}
														</div>
														<div class="layui-form-mid layui-word-aux">请填写应用私钥去头去尾去回车，一行字符串</div>
													</div>
													<div class="layui-form-item">
														<label class="layui-form-label">应用公钥：</label>
														<input type="hidden" name="info[ali_apppublickey]" value="{$info['ali_apppublickey']}" id="ali_apppublickey"/>
														<button style="float:left;" type="button" class="layui-btn layui-btn-primary uploadfile" upload-input="ali_apppublickey" upload-preview="apppublickeyPreview">上传</button>
														<div id="apppublickeyPreview" class="layui-form-mid" style="margin-left:20px;">{if $info['ali_apppublickey']}已上传{/if}</div>
													</div>
													<div class="layui-form-item">
														<label class="layui-form-label">支付宝公钥：</label>
														<input type="hidden" name="info[ali_publickey]" value="{$info['ali_publickey']}" id="ali_publickey"/>
														<button style="float:left;" type="button" class="layui-btn layui-btn-primary uploadfile" upload-input="ali_publickey" upload-preview="publickeyPreview">上传</button>
														<div id="publickeyPreview" class="layui-form-mid" style="margin-left:20px;">{if $info['ali_publickey']}已上传{/if}</div>
													</div>
													<div class="layui-form-item">
														<label class="layui-form-label">支付宝根证书：</label>
														<input type="hidden" name="info[ali_rootcert]" value="{$info['ali_rootcert']}" id="ali_rootcert"/>
														<button style="float:left;" type="button" class="layui-btn layui-btn-primary uploadfile" upload-input="ali_rootcert" upload-preview="rootcertPreview">上传</button>
														<div id="rootcertPreview" class="layui-form-mid" style="margin-left:20px;">{if $info['ali_rootcert']}已上传{/if}</div>
													</div>
												</div>
											</div>
										</fieldset>
									{/if}
									<fieldset class="layui-elem-field">
										<legend>{:t('余额')}提现</legend>
										<div class="layui-field-box">
											<div class="layui-form-item">
												<label class="layui-form-label">{:t('余额')}提现：</label>
												<div class="layui-input-inline">
													<input type="radio" name="info[withdraw]" title="开启" value="1" {if $info['withdraw']==1}checked{/if} lay-filter="withdraw"/>
													<input type="radio" name="info[withdraw]" title="关闭" value="0" {if $info['withdraw']==0}checked{/if} lay-filter="withdraw"/>
												</div>
											</div>
											<div id="withdrawotherset" {if $info['withdraw']==0}style="display:none"{/if}>
												<div class="layui-form-item">
													<label class="layui-form-label">提现最小金额：</label>
													<div class="layui-input-inline" style="width:120px">
														<input type="text" name="info[withdrawmin]" value="{$info['withdrawmin']}" class="layui-input"/>
													</div>
													<div class="layui-form-mid">元</div>
												</div>
												<div class="layui-form-item">
													<label class="layui-form-label">提现最高金额：</label>
													<div class="layui-input-inline" style="width:120px">
														<input type="text" name="info[withdrawmax]" value="{$info['withdrawmax']}" class="layui-input"/>
													</div>
													<div class="layui-form-mid">元 单笔最高提现金额，大于0生效，0为无限制</div>
												</div>
												<div class="layui-form-item">
													<label class="layui-form-label">提现手续费：</label>
													<div class="layui-input-inline" style="width:120px">
														<input type="text" name="info[withdrawfee]" value="{$info['withdrawfee']}" class="layui-input"/>
													</div>
													<div class="layui-form-mid">%</div>
												</div>
												{if getcustom('comwithdrawdate')}
													<div class="layui-form-item">
														<label class="layui-form-label">{:t('余额')}可提现日期：</label>
														<div class="layui-input-inline" style="width:120px">
															<input type="text" name="info[comwithdrawdate_money]" value="{$info['comwithdrawdate_money']}" class="layui-input"/>
														</div>
														<div class="layui-form-mid layui-word-aux">0表示不限制，多个用英文逗号分隔，如：01,02 表示每月1号和2号可以提现</div>
													</div>
												{/if}
											</div>
										</div>
									</fieldset>

									{if getcustom('plug_yuebao')}
									<fieldset class="layui-elem-field">
										<legend>{:t('余额宝')}收益提现</legend>
										<div class="layui-field-box">
											<div class="layui-form-item">
												<label class="layui-form-label">{:t('余额宝')}收益提现：</label>
												<div class="layui-input-inline">
													<input type="radio" name="info[yuebao_withdraw]" title="开启" value="1" {if $info['yuebao_withdraw']==1}checked{/if} lay-filter="yuebao_withdraw"/>
													<input type="radio" name="info[yuebao_withdraw]" title="关闭" value="0" {if $info['yuebao_withdraw']==0}checked{/if} lay-filter="yuebao_withdraw"/>
												</div>
											</div>
											<div id="yuebaowithdrawotherset" {if $info['yuebao_withdraw']==0}style="display:none"{/if}>
												<div class="layui-form-item">
													<label class="layui-form-label">提现最小金额：</label>
													<div class="layui-input-inline" style="width:120px">
														<input type="text" name="info[yuebao_withdrawmin]" value="{$info['yuebao_withdrawmin']}" class="layui-input"/>
													</div>
													<div class="layui-form-mid">元</div>
												</div>
												<div class="layui-form-item">
													<label class="layui-form-label">提现手续费：</label>
													<div class="layui-input-inline" style="width:120px">
														<input type="text" name="info[yuebao_withdrawfee]" value="{$info['yuebao_withdrawfee']}" class="layui-input"/>
													</div>
													<div class="layui-form-mid">%</div>
												</div>
											</div>
										</div>
									</fieldset>
									{/if}

									<fieldset class="layui-elem-field">
										<legend>{:t('佣金')}提现</legend>
										<div class="layui-field-box">
											<div class="layui-form-item">
												<label class="layui-form-label">{:t('佣金')}提现：</label>
												<div class="layui-input-inline">
													<input type="radio" name="info[comwithdraw]" title="开启" value="1" {if $info['comwithdraw']==1}checked{/if} lay-filter="comwithdraw"/>
													<input type="radio" name="info[comwithdraw]" title="关闭" value="0" {if $info['comwithdraw']==0}checked{/if} lay-filter="comwithdraw"/>
												</div>
											</div>
											<!--佣金提现内容  start-->
											<div id="comwithdrawotherset" {if $info['comwithdraw']==0}style="display:none"{/if}>

												{if getcustom('commission_autowithdraw')}
													<div class="layui-form-item">
														<label class="layui-form-label">{:t('佣金')}自动提现：</label>
														<div class="layui-input-inline">
															<input type="radio" name="info[commission_autowithdraw]" title="开启" value="1" {if $info['commission_autowithdraw']==1}checked{/if}/>
															<input type="radio" name="info[commission_autowithdraw]" title="关闭" value="0" {if $info['commission_autowithdraw']==0}checked{/if}/>
														</div>
														<div class="layui-form-mid layui-word-aux">开启后{:t('佣金')}结算后将自动通过企业付款到零钱，需开通企业付款到零钱功能</div>
													</div>
												{/if}
												{if getcustom('commission_withdraw_need_score')}
													<div class="layui-form-item">
														<label class="layui-form-label">{:t('佣金')}提现消耗{:t('积分')}：</label>
														<div class="layui-input-inline">
															<input type="radio" name="info[comwithdraw_need_score]" title="开启" value="1" {if $info['comwithdraw_need_score']==1}checked{/if} />
															<input type="radio" name="info[comwithdraw_need_score]" title="关闭" value="0" {if $info['comwithdraw_need_score']==0}checked{/if} />
														</div>
													</div>
													<div class="layui-form-item">
														<label class="layui-form-label">{:t('佣金')}{:t('积分')}兑换比例：</label>
														<div class="layui-input-inline" style="width: 120px;">
															<input type="number" class="layui-input" name="info[commission_score_exchange_num]" value="{$info.commission_score_exchange_num}">
														</div>
														<div class="layui-form-mid layui-word-aux">{:t('积分')}可兑换1{:t('佣金')}</div>
													</div>
												{/if}
												<div class="layui-form-item">
													<label class="layui-form-label">提现最小金额：</label>
													<div class="layui-input-inline" style="width:120px">
														<input type="text" name="info[comwithdrawmin]" value="{$info['comwithdrawmin']}" class="layui-input"/>
													</div>
													<div class="layui-form-mid">元</div>
												</div>
												<div class="layui-form-item">
													<label class="layui-form-label">提现最高金额：</label>
													<div class="layui-input-inline" style="width:120px">
														<input type="text" name="info[comwithdrawmax]" value="{$info['comwithdrawmax']}" class="layui-input"/>
													</div>
													<div class="layui-form-mid">元 单笔最高提现金额，大于0生效，0为无限制</div>
												</div>
												<div class="layui-form-item">
													<label class="layui-form-label">提现手续费：</label>
													<div class="layui-input-inline" style="width:120px">
														<input type="text" name="info[comwithdrawfee]" value="{$info['comwithdrawfee']}" class="layui-input"/>
													</div>
													<div class="layui-form-mid">%</div>
												</div>




												{if getcustom('commission_withdraw_freeze')}

												<div class="layui-form-item commission_frozen">
													  <label class="layui-form-label">提现冻结：</label>
													  <div style="float:left; margin-left: 0;">
														  <div class="commission_frozen_row">
															  <input type="checkbox" name="info[comwithdraw_freeze][]" value="1" {if in_array('1',explode(',',$info['comwithdraw_freeze']))}checked{/if} title="" lay-skin="primary">
															  <div style="float:left;">
																  <div class="checkbox-text">累计提现 <div class="layui-input-inline" style="width: 100px;float: none;">
																	  <input type="text" name="info[comwithdraw_totalmoney]" class="layui-input" value="{$info.comwithdraw_totalmoney}">
																	  </div>元
																  </div>
															  </div>
														  </div>
													</div>
											  </div>
													
												<div class="layui-form-item commission_frozen">
													  <label class="layui-form-label">解冻条件：</label>
													  <div style="float:left; margin-left: 0;">
														  <div class="commission_frozen_row">
															  <input type="checkbox" name="info[jiedong_condtion][]" value="1" {if in_array('1',explode(',',$info['jiedong_condtion']))}checked{/if} title="" lay-skin="primary">
															  <div style="float:left;">
																  <div class="checkbox-text">购买商品ID <div class="layui-input-inline" style="width: 100px;float: none;">
																	  <input type="text" name="info[buy_proid]" class="layui-input" value="{$info.buy_proid}">
																	  </div>
																  </div>

																    <div class="checkbox-text">数量 <div class="layui-input-inline" style="width: 100px;float: none;">
																	  <input type="text" name="info[buypro_num]" class="layui-input" value="{$info.buypro_num}">
																	  </div>
																  </div>
															  </div>
														  </div>
													</div>
											  </div>
														
											{/if}






												{if getcustom('comwithdrawdate')}
													<div class="layui-form-item">
														<label class="layui-form-label">{:t('佣金')}可提现日期：</label>
														<div class="layui-input-inline" style="width:120px">
															<input type="text" name="info[comwithdrawdate]" value="{$info['comwithdrawdate']}" class="layui-input"/>
														</div>
														<div class="layui-form-mid layui-word-aux">0表示不限制，多个用英文逗号分隔，如：01,02 表示每月1号和2号可以提现</div>
													</div>
												{/if}
												{if getcustom('fengdanjiangli')}
													<div class="layui-form-item">
														<label class="layui-form-label">可提现比例：</label>
														<div class="layui-input-inline" style="width:120px">
															<input type="text" name="info[comwithdrawbl]" value="{$info['comwithdrawbl']}" class="layui-input"/>
														</div>
														<div class="layui-form-mid">%</div>
														<div class="layui-form-mid layui-word-aux">可提现比例不是100%时,不可提现部分在提现时直接转换为余额</div>
													</div>
												{/if}
												{if getcustom('commission2scorepercent')}
													<div class="layui-form-item">
														<label class="layui-form-label">{:t('佣金')}到{:t('积分')}账户比例：</label>
														<div class="layui-input-inline" style="width:120px">
															<input type="text" name="info[commission2scorepercent]" value="{$info['commission2scorepercent']}" class="layui-input"/>
														</div>
														<div class="layui-form-mid">%</div>
														<div class="layui-form-mid layui-word-aux">设置后产生佣金时就有一部分比例自动转成积分</div>
													</div>
												{/if}
												{if getcustom('commission2moneypercent')}
													<div class="layui-form-item">
														<label class="layui-form-label">{:t('佣金')}到{:t('余额')}账户比例：</label>
														<div class="layui-input-inline layui-module-itemL">
															<div>首单</div>
															<input type="text" name="info[commission2moneypercent1]" class="layui-input" value="{$info.commission2moneypercent1}">
															%
														</div>
														<div class="layui-input-inline layui-module-itemL">
															<div>复购</div>
															<input type="text" name="info[commission2moneypercent2]" class="layui-input" value="{$info.commission2moneypercent2}">
															%
														</div>
														<div class="layui-form-mid layui-word-aux">设置后商城订单产生{:t('佣金')}时就有一部分比例自动转成{:t('余额')}</div>
													</div>
												{/if}
											</div>
											<!--佣金提现内容  end-->
										</div>
									</fieldset>


									{if getcustom('member_recharge_yj')}
										<fieldset class="layui-elem-field">
											<legend>充值业绩提现</legend>
											<div class="layui-field-box">
												<div class="layui-form-item">
													<label class="layui-form-label">充值业绩提现：</label>
													<div class="layui-input-inline">
														<input type="radio" name="info[rechargeyj_withdraw]" title="开启" value="1" {if $info['rechargeyj_withdraw']==1}checked{/if} lay-filter="rechargeyj_withdraw"/>
														<input type="radio" name="info[rechargeyj_withdraw]" title="关闭" value="0" {if $info['rechargeyj_withdraw']==0}checked{/if} lay-filter="rechargeyj_withdraw"/>
													</div>
												</div>
												<!--充值业绩提现 start-->
												<div id="rechargeyjwithdrawotherset" {if $info['rechargeyj_withdraw']==0}style="display:none"{/if}>
													<div class="layui-form-item">
														<label class="layui-form-label">提现最小金额：</label>
														<div class="layui-input-inline" style="width:120px">
															<input type="text" name="info[rechargeyj_withdrawmin]" value="{$info['rechargeyj_withdrawmin']}" class="layui-input"/>
														</div>
														<div class="layui-form-mid">元</div>
													</div>
													<div class="layui-form-item">
														<label class="layui-form-label">提现手续费：</label>
														<div class="layui-input-inline" style="width:120px">
															<input type="text" name="info[rechargeyj_withdrawfee]" value="{$info['rechargeyj_withdrawfee']}" class="layui-input"/>
														</div>
														<div class="layui-form-mid">%</div>
													</div>
												</div>
												<!--充值业绩提现 end-->
											</div>
										</fieldset>
									{/if}
									<!--提现部分 end-->


									<fieldset class="layui-elem-field layui-field-title">
										<legend>发票</legend>
									</fieldset>
									<div class="layui-form-item">
										<label class="layui-form-label">发票开关：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[invoice]" value="1" {if $info['invoice']==1}checked{/if} title="开启" lay-filter="invoice"/>
											<input type="radio" name="info[invoice]" value="0" {if $info['invoice']==0}checked{/if} title="关闭" lay-filter="invoice"/>
										</div>
									</div>
  									<div id="invoice-set" {if $info['invoice']==0}style="display:none"{/if}>
									  <div class="layui-form-item">
										  <label class="layui-form-label">发票类型：</label>
										  <div class="layui-input-inline" style="width:300px">
											  <input type="checkbox" name="info[invoice_type][]" value="1" title="普通发票" lay-skin="primary" {if in_array('1',$info['invoice_type'])}checked{/if}/>
											  <input type="checkbox" name="info[invoice_type][]" value="2" title="增值税专用发票" lay-skin="primary" {if in_array('2',$info['invoice_type'])}checked{/if}/>
										  </div>
									  </div>
									{if getcustom('invoice_rate')}
									  <div class="layui-form-item">
										  <label class="layui-form-label">发票税点：</label>
										  <div class="layui-input-inline" style="width:120px">
											  <input type="text" name="info[invoice_rate]" value="{$info['invoice_rate']}" class="layui-input"/>
										  </div>
										  <div class="layui-form-mid">%</div>
									  </div>
  									{/if}
									</div>
  									{if getcustom('pay_transfer')}
									<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
										<legend>转账汇款</legend>
									</fieldset>
									<div class="layui-form-item">
										<label class="layui-form-label">转账汇款支付：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[pay_transfer]" title="开启" value="1" {if $info['pay_transfer']==1}checked{/if} lay-filter="pay_transfer"/>
											<input type="radio" name="info[pay_transfer]" title="关闭" value="0" {if $info['pay_transfer']==0}checked{/if} lay-filter="pay_transfer"/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">开启后{:t('会员')}下单时可使用此支付方式，后台需审核并处理订单，仅平台支持</div>
									</div>
									<div id="pay_transfer_set" {if $info['pay_transfer']==0}style="display:none"{/if}>
										<div class="layui-form-item">
											<label class="layui-form-label">户名：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="info[pay_transfer_account_name]" value="{$info['pay_transfer_account_name']}" class="layui-input"/>
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">账号：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="info[pay_transfer_account]" value="{$info['pay_transfer_account']}" class="layui-input"/>
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">开户行：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="info[pay_transfer_bank]" value="{$info['pay_transfer_bank']}" class="layui-input"/>
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">提示信息：</label>
											<div class="layui-input-inline" style="width:400px">
												<textarea type="text" name="info[pay_transfer_desc]" class="layui-textarea" value="">{$info.pay_transfer_desc}</textarea>
											</div>
											<div class="layui-form-mid layui-word-aux layui-clear">展示在转账信息下面的提示说明，如：汇款时请将订单号填写在附言，备注等栏位</div>
										</div>
										  <div class="layui-form-item">
											  <label class="layui-form-label">使用权限：</label>
											  <div class="layui-input-inline" style="width:800px">
												  <input type="checkbox" name="info[pay_transfer_gettj][]" value="-1" title="所有人" lay-skin="primary" {if in_array('-1',$info['pay_transfer_gettj'])}checked{/if}/>
												  {foreach $levellist as $v}
												  <input type="checkbox" name="info[pay_transfer_gettj][]" value="{$v.id}" title="{$v.name}" lay-skin="primary" {if in_array($v['id'],$info['pay_transfer_gettj'])}checked{/if}/>
												  {/foreach}
											  </div>
										  </div>
										<div class="layui-form-item">
											<label class="layui-form-label">转账审核：</label>
											<div class="layui-input-inline">
												<input type="radio" name="info[pay_transfer_check]" title="开启" value="1" {if $info['pay_transfer_check']==1}checked{/if} lay-filter="pay_transfer_check"/>
												<input type="radio" name="info[pay_transfer_check]" title="关闭" value="0" {if !$info['pay_transfer_check'] || $info['pay_transfer_check']==0}checked{/if} lay-filter="pay_transfer_check"/>
											</div>
											<div class="layui-form-mid layui-word-aux layui-clear">开启后{:t('会员')}下单时需要先审核，才能使用转换汇款功能</div>
										</div>
									</div>
									{/if}
  									{if getcustom('member_overdraft_money')}
										<fieldset class="layui-elem-field layui-field-title"  style="margin-top: 30px;">
										  <legend>{:t('透支额度')}</legend>
										</fieldset>
										<div class="layui-form-item">
										  <label class="layui-form-label">{:t('透支额度')}支付：</label>
										  <div class="layui-input-inline">
											  <input type="radio" name="info[overdraft_moneypay]" title="开启" value="1" {if $info['overdraft_moneypay']==1}checked{/if}/>
											  <input type="radio" name="info[overdraft_moneypay]" title="关闭" value="0" {if $info['overdraft_moneypay']==0}checked{/if}/>
										  </div>
										</div>
										<!--<div class="layui-form-item">
										  <label class="layui-form-label">最大透支额度：</label>
										  <div class="layui-input-inline">
											  <input type="text" class="layui-input" name="info[overdraft_money_limit]" value="{$info.overdraft_money_limit|default=0}">
										  </div>
										  <div class="layui-form-mid layui-word-aux">当额度低于该额度时，不可使用。0表示不受限制。</div>
										</div>-->
  									{/if}
									{if getcustom('w7moneyscore')}
									<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
										<legend>微擎同步</legend>
									</fieldset>
									<div class="layui-form-item">
										<label class="layui-form-label">使用微擎平台余额积分：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[w7moneyscore]" title="关闭" value="0" {if $info['w7moneyscore']==0}checked{/if}/>
											<input type="radio" name="info[w7moneyscore]" title="开启" value="1" {if $info['w7moneyscore']==1}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux">开启后余额和积分将使用微擎平台的{:t('会员')}余额积分，即和微擎平台的{:t('会员')}余额和积分同步，请谨慎操作</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">微擎平台或应用uniacid：</label>
										<div class="layui-input-inline">
											<input type="text" name="info[w7uniacid]" value="{$info['w7uniacid']}" class="layui-input"/>
										</div>
										<div class="layui-form-mid layui-word-aux">根据uniacid同步信息，请谨慎操作</div>
									</div>
									{/if}
								</div>
								<div class="layui-tab-item">
									<div class="layui-form-item">
										<label class="layui-form-label">消费赠{:t('积分')}：</label>
										<div class="layui-input-inline layui-module-itemL">
											<div>消费每满</div>
											<input type="text" name="info[scorein_money]" class="layui-input" value="{$info.scorein_money}">
											元
										</div>
										<div class="layui-input-inline layui-module-itemL">
											<div>赠送</div>
											<input type="text" name="info[scorein_score]" class="layui-input" value="{$info.scorein_score}">
											{:t('积分')}
										</div>
										<div class="layui-form-mid layui-word-aux">支付后积分即到账，发生退款时不会扣除</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">充值赠{:t('积分')}：</label>
										<div class="layui-input-inline layui-module-itemL">
											<div>充值每满</div>
											<input type="text" name="info[scorecz_money]" class="layui-input" value="{$info.scorecz_money}">
											元
										</div>
										<div class="layui-input-inline layui-module-itemL">
											<div>赠送</div>
											<input type="text" name="info[scorecz_score]" class="layui-input" value="{$info.scorecz_score}">
											{:t('积分')}
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('积分')}抵扣：</label>
										<div class="layui-input-inline layui-module-itemL">
											<div>每{:t('积分')}抵扣</div>
											<input type="text" name="info[score2money]" class="layui-input" value="{$info.score2money}">
											元
										</div>
										<div class="layui-form-mid layui-word-aux">付款时一个{:t('积分')}可抵扣多少元，0表示不开启{:t('积分')}抵扣</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label"></label>
										<div class="layui-input-inline layui-module-itemL">
											<div>最多抵扣百分比</div>
											<input type="text" name="info[scoredkmaxpercent]" class="layui-input" value="{$info.scoredkmaxpercent}">
											%
										</div>
										<div class="layui-form-mid layui-word-aux">选择使用{:t('积分')}抵扣时，最多可抵扣订单额的百分之多少</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('积分')}不抵扣运费：</label>
										<div class="layui-input-inline" style="width:70px">
											<input type="checkbox" name="info[scorebdkyf]" value="1" lay-text="开启|关闭" lay-skin="switch" {if $info['scorebdkyf']==1}checked{/if}>
										</div>
										<div class="layui-form-mid layui-word-aux">开启后{:t('积分')}不能抵扣运费</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('余额')}支付送{:t('积分')}：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[score_from_moneypay]" title="开启" value="1" {if $info['score_from_moneypay']==1}checked{/if}/>
											<input type="radio" name="info[score_from_moneypay]" title="关闭" value="0" {if $info['score_from_moneypay']==0}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux">[营销]-[充值赠送]也可赠送{:t('积分')}，开启后{:t('余额')}支付会再次赠送</div>
									</div>
									{if getcustom('score_expire')}
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('积分')}过期：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[score_expire_status]" title="开启" value="1" {if $info['score_expire_status']==1}checked{/if} lay-filter="diandaSwitch"/>
											<input type="radio" name="info[score_expire_status]" title="关闭" value="0" {if $info['score_expire_status']==0}checked{/if} lay-filter="diandaSwitch"/>
										</div>
										<div class="layui-form-mid layui-word-aux">开启后，达到过期天数的所有{:t('积分')}会过期，请谨慎操作</div>
									</div>
									<div diandaSwitch="info[score_expire_status]" {if $info['score_expire_status'] != 1} style="display:none"{/if}>
										<div class="layui-form-item">
											<label class="layui-form-label">过期天数：</label>
											<div class="layui-input-inline" style="width: 100px;">
												<input type="number" min="0" name="info[score_expire_days]" class="layui-input" value="{$info.score_expire_days}">
											</div>
											<div class="layui-form-mid layui-word-aux">0为不过期</div>
										</div>
									</div>
									{/if}
									{if getcustom('score_transfer') || getcustom('score_friend_transfer')}
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('积分')}转赠：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[score_transfer]" title="开启" value="1" {if $info['score_transfer']==1}checked{/if} lay-filter="diandaSwitch"/>
											<input type="radio" name="info[score_transfer]" title="关闭" value="0" {if $info['score_transfer']==0}checked{/if} lay-filter="diandaSwitch"/>
										</div>
									</div>
									<div diandaSwitch="info[score_transfer]" {if $info['score_transfer'] != 1} style="display:none"{/if}>
										<div class="layui-form-item">
											<label class="layui-form-label">{:t('积分')}转赠范围：</label>
											<div class="layui-input-inline" style="width: 60%">
												{if getcustom('score_transfer')}
													<input type="radio" name="info[score_transfer_range]" title="全站" value="0" {if $info['score_transfer_range']==0}checked{/if}/>
													<input type="radio" name="info[score_transfer_range]" title="所有上下级" value="1" {if $info['score_transfer_range']==1}checked{/if}/>
												{/if}
												{if getcustom('score_friend_transfer')}
													<input type="radio" name="info[score_transfer_range]" title="好友" value="2" {if $info['score_transfer_range']==2}checked{/if}/>
												{/if}
											</div>
										</div>
										<div class="layui-form-item">
										  <label class="layui-form-label">{:t('积分')}转赠使用权限：</label>
										  <div class="layui-input-inline" style="width:800px">
											  <input type="checkbox" name="info[score_transfer_gettj][]" value="-1" title="所有人" lay-skin="primary" {if in_array('-1',explode(',',$info['score_transfer_gettj']))}checked{/if}/>
											  {foreach $levellist as $v}
											  <input type="checkbox" name="info[score_transfer_gettj][]" value="{$v.id}" title="{$v.name}" lay-skin="primary" {if in_array($v['id'],explode('-1',$info['score_transfer_gettj']))}checked{/if}/>
											  {/foreach}
										  </div>
										</div>
										<div class="layui-form-item">
										  <label class="layui-form-label">{:t('积分')}转赠支付密码：</label>
										  <div class="layui-input-inline">
											  <input type="radio" lay-filter="score_transfer_pwd" name="info[score_transfer_pwd]" title="开启" value="1" {if $info['score_transfer_pwd']==1}checked{/if}/>
											  <input type="radio" lay-filter="score_transfer_pwd" name="info[score_transfer_pwd]" title="关闭" value="0" {if $info['score_transfer_pwd']==0}checked{/if}/>
										  </div>
										</div>
									</div>
									{/if}
									{if getcustom('score_withdraw')}
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('积分')}提现到{:t('余额')}：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[score_withdraw]" title="开启" value="1" {if $info['score_withdraw']==1}checked{/if} lay-filter="score_withdraw"/>
											<input type="radio" name="info[score_withdraw]" title="关闭" value="0" {if $info['score_withdraw']==0}checked{/if} lay-filter="score_withdraw"/>
										</div>
									</div>
									<div id="score_withdraw_div" {if $info['score_withdraw']==0}style="display:none"{/if}>
										<div class="layui-form-item">
											<label class="layui-form-label">每日转允提{:t('积分')}比例：</label>
											<div class="layui-input-inline" style="width:120px">
												<input type="number" min="0" max="100" name="info[score_withdraw_percent_day]" value="{$info['score_withdraw_percent_day']}" class="layui-input"/>
											</div>
											<div class="layui-form-mid">%</div>
											<div class="layui-form-mid layui-word-aux">每日普通{:t('积分')}转为可提现{:t('积分')}的百分比，不足1{:t('积分')}按1{:t('积分')}，大于1积分时，对小数位四舍五入取整数</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">{:t('积分')}转{:t('余额')}换算比例：</label>
											<div class="layui-input-inline" style="width:120px">
												<input type="number" min="0" name="info[score_to_money_percent]" value="{$info['score_to_money_percent']}" class="layui-input"/>
											</div>
											<div class="layui-form-mid layui-word-aux">如设置0.5，表示1{:t('积分')}换0.5元{:t('余额')}</div>
										</div>
									</div>
									{/if}
									  {if getcustom('score_to_money_auto')}
									  <div class="layui-form-item">
										  <label class="layui-form-label">{:t('积分')}自动转{:t('余额')}：</label>
										  <div class="layui-input-inline">
											  <input type="radio" name="info[score_to_money_auto]" title="开启" value="1" {if $info['score_to_money_auto']==1}checked{/if} lay-filter="score_to_money"/>
											  <input type="radio" name="info[score_to_money_auto]" title="关闭" value="0" {if $info['score_to_money_auto']==0}checked{/if} lay-filter="score_to_money"/>
										  </div>
									  </div>
									  <div id="score_to_money_div" {if $info['score_to_money_auto']==0}style="display:none"{/if}>
									  <div class="layui-form-item">
										  <label class="layui-form-label">每日{:t('积分')}自动转{:t('余额')}比例：</label>
										  <div class="layui-input-inline" style="width:120px">
											  <input type="number" min="0" max="100" name="info[score_to_money_auto_day]" value="{$info['score_to_money_auto_day']}" class="layui-input"/>
										  </div>
										  <div class="layui-form-mid">%</div>
										  <div class="layui-form-mid layui-word-aux">每日普通{:t('积分')}转为{:t('余额')}的百分比，不足1{:t('积分')}按1{:t('积分')}，大于1积分时，对小数位四舍五入取整数</div>
									  </div>
									  <div class="layui-form-item">
										  <label class="layui-form-label">每日{:t('积分')}自动转{:t('余额')}换算比例：</label>
										  <div class="layui-input-inline" style="width:120px">
											  <input type="number" min="0" name="info[score_to_money_auto_percent]" value="{$info['score_to_money_auto_percent']}" class="layui-input"/>
										  </div>
										  <div class="layui-form-mid layui-word-aux">如设置0.5，表示1{:t('积分')}换0.5元{:t('余额')}</div>
									  </div>
									  </div>
									  {/if}
  									{if getcustom('score_weishu')}
									  <div class="layui-form-item">
										  <label class="layui-form-label">{:t('积分')}小数位数：</label>
										  <div class="layui-input-inline" style="width:120px">
											  <input type="number" min="0" name="info[score_weishu]" value="{$info['score_weishu']}" class="layui-input"/>
										  </div>
										  <div class="layui-form-mid layui-word-aux">系统中积分保留小数位数，最高支持三位</div>
									  </div>
  									{/if}
								</div>
								<div class="layui-tab-item form-label-w10">
									<div class="layui-form-item">
										<label class="layui-form-label">分销结算方式：</label>
										<div class="layui-input-inline" style="width:400px">
											<input type="radio" name="info[fxjiesuantype]" title="按商品价格" value="0" {if $info['fxjiesuantype']==0}checked{/if}/>
											<input type="radio" name="info[fxjiesuantype]" title="按成交价格" value="1" {if $info['fxjiesuantype']==1}checked{/if}/>
											<input type="radio" name="info[fxjiesuantype]" title="按销售利润" value="2" {if $info['fxjiesuantype']==2}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">按商品价格结算：商品价格×提成百分比；按成交价格结算：成交价格×提成百分比,即扣除{:t('会员')}折扣、满减优惠、{:t('优惠券')}抵扣及{:t('积分')}抵扣后计算分销；按销售利润结算：（成交价格-商品成本）×提成百分比</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">分销结算时间：</label>
										<div class="layui-input-inline" style="width:250px">
											<input type="radio" name="info[fxjiesuantime]" title="确认收货后" value="0" {if $info['fxjiesuantime']==0}checked{/if}/>
											<input type="radio" name="info[fxjiesuantime]" title="付款后" value="1" {if $info['fxjiesuantime']==1}checked{/if}/>
										</div>
										{if getcustom('fxjiesuantime_perweek')}
										<div class="layui-form-mid">周</div>
										<div class="layui-input-inline" style="width:100px">
											<input type="text" name="info[fxjiesuantime_delaydays]" class="layui-input" value="{$info.fxjiesuantime_delaydays}">
										</div>
										<div class="layui-form-mid">结算</div>
										{/if}
										{if !getcustom('fxjiesuantime_perweek')}
										<div class="layui-input-inline" style="width:100px">
											<input type="text" name="info[fxjiesuantime_delaydays]" class="layui-input" value="{$info.fxjiesuantime_delaydays}">
										</div>
										<div class="layui-form-mid">天结算</div>
										{/if}
										<div class="layui-form-mid layui-word-aux layui-clear">注意：0代表付款或确认收货后立即结算，如果产生退款，已发放的{:t('佣金')}不会扣除</div>
									</div>
									{if getcustom('commission_jicha')}
									<div class="layui-form-item">
										<label class="layui-form-label">分销级差：</label>
										<div class="layui-input-inline" style="width:160px">
											<input type="radio" name="info[fx_differential]" title="是" value="1" {if $info['fx_differential']==1}checked{/if}/>
											<input type="radio" name="info[fx_differential]" title="否" value="0" {if $info['fx_differential']==0}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">开启后分销将按照级差进行计算，仅限按金额和比例方式</div>
									</div>
									{/if}
									{if getcustom('commission_jinsuo')}
									<div class="layui-form-item">
										<label class="layui-form-label">分销紧缩：</label>
										<div class="layui-input-inline" style="width:160px">
											<input type="radio" name="info[fx_jinsuo]" title="是" value="1" {if $info['fx_jinsuo']==1}checked{/if}/>
											<input type="radio" name="info[fx_jinsuo]" title="否" value="0" {if $info['fx_jinsuo']==0}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">开启后分销将紧缩掉分销"提成比例"并且"买单提成积分"为0的用户</div>
									</div>
									{/if}
									{if getcustom('commission_butie')}
									<div class="layui-form-item">
										<label class="layui-form-label">{:t('分销补贴')}：</label>
										<div class="layui-input-inline" style="width:160px">
											<input type="radio" name="info[fx_butie_type]" title="按周" value="1" {if $info['fx_butie_type']==1}checked{/if} lay-filter="fx_butie_type"/>
											<input type="radio" name="info[fx_butie_type]" title="按月" value="0" {if $info['fx_butie_type']==0}checked{/if} lay-filter="fx_butie_type"/>
										</div>
										<div class="layui-form-mid">补贴周期</div>
										<div class="layui-input-inline" style="width:170px">
											<input type="text" name="info[fx_butie_circle]" class="layui-input" value="{$info.fx_butie_circle}">
										</div>

									</div>
									<div class="layui-form-item">
										<label class="layui-form-label"></label>
										<div class="layui-input-inline layui-module-itemL fx-butie-send-week" {if $info['fx_butie_type']!=1}style='display:none;'{/if}>
											<div>每周</div>
											<input type="text" name="info[fx_butie_send_week]" class="layui-input" value="{$info.fx_butie_send_week}">
											发放（填写数字1-7）
										</div>
										<div class="layui-input-inline layui-module-itemL fx-butie-send-day" {if $info['fx_butie_type']!=0}style='display:none;'{/if}>
											<div>每月</div>
											<input type="text" name="info[fx_butie_send_day]" class="layui-input" value="{$info.fx_butie_send_day}">
											号发放（填写数字1-31）
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">
											1、发放佣金时立马发放第一期补贴<br/>
											2、补贴周期：共分多少期发放<br/>
											3、按周：填写数字1-7，每周发放一次<br/>
											4、按月：填写数字1-31，每月发放一次，没有31号的月份自动提前到30号发放<br/>
											5、产生补贴时会记录当前设置参数，补贴以已生成再改参数不会生效<br/>
										</div>
									</div>
									{/if}
									{if getcustom('commission_recursion')}
									<div class="layui-form-item">
										<label class="layui-form-label">直推复购奖</label>
										<div class="layui-input-inline" style="width:50%">
											<input type="radio" name="info[is_fugou_commission]" value="1" title="是" {if $info['is_fugou_commission']==1}checked{/if} lay-filter="is_fugou_commission">
											<input type="radio" name="info[is_fugou_commission]" value="0" title="否" {if $info['is_fugou_commission']==0 || $info['is_fugou_commission']==''}checked{/if} lay-filter="is_fugou_commission">
										</div>
									</div>
									<div class="layui-form-item" id="fugouBox" {if $info['is_fugou_commission']!='1'}style="display:none;"{/if}>
										<label class="layui-form-label">复购奖励设置</label>
										<div class="layui-input-inline" style="width:80px">
											<input type="text" class="layui-input" name="info[fugou_recursion_percent]" value="{$info.fugou_recursion_percent|default=0}">
										</div>
										<div class="layui-form-mid layui-word-aux">%，逐级递减，当金额低于</div>
										<div class="layui-input-inline" style="width:80px">
											<input type="number" step="1" min="0" name="info[fugou_commission_min]" lay-verify="number|Ndouble" class="layui-input" value="{$info['fugou_commission_min']|default=0}">
										</div>
										<div class="layui-form-mid layui-word-aux">元时，停止{:t('佣金')}发放</div>
									</div>
									{/if}
									<div class="layui-form-item">
										<label class="layui-form-label">买单收款分销：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[maidanfenxiao]" title="否" value="0" {if $info['maidanfenxiao']==0}checked{/if}/>
											<input type="radio" name="info[maidanfenxiao]" title="是" value="1" {if $info['maidanfenxiao']==1}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">买单收款功能是否参与分销</div>
									</div>
  									<!--买单分红 start-->
  									{if getcustom('maidan_fenhong_new')}
									  <div class="layui-form-item">
										  <label class="layui-form-label">买单分销结算方式：</label>
										  <div class="layui-input-inline" style="width:400px">
											  <input type="radio" name="info[maidanfenxiao_type]" title="按销售额" value="0" {if $info['maidanfenxiao_type']==0}checked{/if} />
											  <input type="radio" name="info[maidanfenxiao_type]" title="利润" value="1" {if $info['maidanfenxiao_type']==1}checked{/if} />
										  </div>
										  <div class="layui-form-mid layui-word-aux layui-clear">买单分红结算方式</div>
									  </div>
									  <div class="layui-form-item">
										  <label class="layui-form-label">买单收款分红：</label>
										  <div class="layui-input-inline">
											  <input type="radio" name="info[maidanfenhong]" title="否" value="0" {if $info['maidanfenhong']==0}checked{/if} lay-filter="maidan_fenhong"/>
											  <input type="radio" name="info[maidanfenhong]" title="是" value="1" {if $info['maidanfenhong']==1}checked{/if} lay-filter="maidan_fenhong"/>
										  </div>
										  <div class="layui-form-mid layui-word-aux layui-clear">买单收款功能是否参与分红</div>
									  </div>
  									<div class="maidan_fenhong" {if $info['maidanfenhong']==0}style="display:none;"{/if}>
									  <div class="layui-form-item">
										  <label class="layui-form-label">买单成本比例(%)：</label>
										  <div class="layui-input-inline">
											  <input type="text" class="layui-input" name="info[maidan_cost]" value="{$info.maidan_cost}" />
										  </div>
										  <div class="layui-form-mid layui-word-aux layui-clear">买单成本比例</div>
									  </div>
									  <div class="layui-form-item">
										  <label class="layui-form-label">买单分红结算方式：</label>
										  <div class="layui-input-inline" style="width:400px">
											  <input type="radio" name="info[maidanfenhong_type]" title="按销售额" value="0" {if $info['maidanfenhong_type']==0}checked{/if} />
											  <input type="radio" name="info[maidanfenhong_type]" title="利润" value="1" {if $info['maidanfenhong_type']==1}checked{/if} />
										  </div>
										  <div class="layui-form-mid layui-word-aux layui-clear">买单分红结算方式</div>
									  </div>
									</div>
  									{/if}
  									<!--买单分红 end-->
									{if getcustom('cashdesk_commission')}
									<div class="layui-form-item">
										<label class="layui-form-label">收银台分销：</label>
										<div class="layui-input-inline">
											<input type="radio" name="info[cashdeskfenxiao]" title="否" value="0" {if $info['cashdeskfenxiao']==0}checked{/if}/>
											<input type="radio" name="info[cashdeskfenxiao]" title="是" value="1" {if $info['cashdeskfenxiao']==1}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">收银台付款功能是否参与分销</div>
									</div>
									{/if}
									
									{if $auth_data=='all' || in_array('gdfenhong',$auth_data) || in_array('teamfenhong',$auth_data) || in_array('areafenhong',$auth_data)}
									<div class="layui-form-item">
										<label class="layui-form-label">分红结算方式：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[fhjiesuantype]" title="按销售金额" value="0" {if $info['fhjiesuantype']==0}checked{/if}/>
											<input type="radio" name="info[fhjiesuantype]" title="按销售利润" value="1" {if $info['fhjiesuantype']==1}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">按销售金额结算即：销售价格×提成百分比，按销售利润即：（销售价格-商品成本）×提成百分比</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">分红结算时间：</label>
										<div class="layui-input-inline" style="width:600px">
											<input type="radio" name="info[fhjiesuantime_type]" title="确认收货后结算" value="0" {if $info['fhjiesuantime_type']==0}checked{/if} lay-filter="fhjiesuantime_type"/>
											<input type="radio" name="info[fhjiesuantime_type]" title="付款后结算" value="1" {if $info['fhjiesuantime_type']==1}checked{/if} lay-filter="fhjiesuantime_type"/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">确认收货后结算：可选计算周期，付款后结算：每分钟计算一次</div>
										<div class="layui-form-mid layui-clear" style="margin-left:190px;color:red;">注意：选择付款后结算退款时无法退回分红</div>
									</div>
									<div class="layui-form-item" id="fhjiesuantime_type-set"{if $info['fhjiesuantime_type']==1}style="display:none"{/if}>
										<label class="layui-form-label">分红结算周期：</label>
										<div class="layui-input-inline" style="width:700px">
											<input type="radio" name="info[fhjiesuantime]" title="每天结算" value="0" {if $info['fhjiesuantime']==0}checked{/if}/>
											<input type="radio" name="info[fhjiesuantime]" title="每小时结算" value="2" {if $info['fhjiesuantime']==2}checked{/if}/>
											<input type="radio" name="info[fhjiesuantime]" title="每分钟结算" value="3" {if $info['fhjiesuantime']==3}checked{/if}/>
											<input type="radio" name="info[fhjiesuantime]" title="月初结算" value="1" {if $info['fhjiesuantime']==1}checked{/if}/>
											<input type="radio" name="info[fhjiesuantime]" title="月底结算" value="4" {if $info['fhjiesuantime']==4}checked{/if}/>
											<input type="radio" name="info[fhjiesuantime]" title="年底结算" value="5" {if $info['fhjiesuantime']==5}checked{/if}/>
											{if getcustom('fhjiesuantime_shoudong')}
											<input type="radio" name="info[fhjiesuantime]" title="手动结算" value="10" {if $info['fhjiesuantime']==10}checked{/if}/>
											{/if}
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">每天结算则第二天计算前一天的分红并发放，月初结算则每月一号计算上一个月的分红并发放（确认收货的订单）</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">分红合并结算：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[fhjiesuanhb]" title="是" value="1" {if $info['fhjiesuanhb']==1}checked{/if}/>
											<input type="radio" name="info[fhjiesuanhb]" title="否" value="0" {if $info['fhjiesuanhb']==0}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">分红合并结算即结算时所有需要分红的订单合并为一条,产生一条结算记录</div>
									</div>
									{if $auth_data=='all' || in_array('teamfenhong',$auth_data)}
									<div class="layui-form-item">
										<label class="layui-form-label">团队分红级差：</label>
										<div class="layui-input-inline" style="width:160px">
											<input type="radio" name="info[teamfenhong_differential]" title="是" value="1" {if $info['teamfenhong_differential']==1}checked{/if}/>
											<input type="radio" name="info[teamfenhong_differential]" title="否" value="0" {if $info['teamfenhong_differential']==0}checked{/if}/>
										</div>
										{if getcustom('teamfenhong_pingji') && ($auth_data == 'all' || in_array('teamfenhong_pingji',$auth_data))}
										<div class="layui-input-inline" style="width:150px" id="teamfenhong_differential_pj">
											<input type="checkbox" name="info[teamfenhong_differential_pj]" value="1" title="包含平级奖" lay-skin="primary" {if $info['teamfenhong_differential_pj'] == 1}checked{/if}/>
										</div>
										{/if}
										<div class="layui-form-mid layui-word-aux layui-clear">开启后团队分红将按照级差进行分红</div>
									</div>
									{/if}
									{if getcustom('areafenhong_differential') && ($auth_data=='all' || in_array('areafenhong',$auth_data))}
									<div class="layui-form-item">
										<label class="layui-form-label">区域代理分红级差：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[areafenhong_differential]" title="是" value="1" {if $info['areafenhong_differential']==1}checked{/if}/>
											<input type="radio" name="info[areafenhong_differential]" title="否" value="0" {if $info['areafenhong_differential']==0}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">开启后区域代理分红将按照级差进行分红</div>
									</div>
									{/if}
  									{if getcustom('teamfenhong_jiandan')}
									{if $auth_data=='all' || in_array('teamfenhongJiandan',$auth_data)}
										<div class="layui-form-item">
											<label class="layui-form-label">团队见单分红级差：</label>
											<div class="layui-input-inline" style="width:160px">
												<input type="radio" name="info[teamfenhong_jiandan_differential]" title="是" value="1" {if $info['teamfenhong_jiandan_differential']==1}checked{/if}/>
												<input type="radio" name="info[teamfenhong_jiandan_differential]" title="否" value="0" {if $info['teamfenhong_jiandan_differential']==0}checked{/if}/>
											</div>
											<!--<div class="layui-input-inline" style="width:150px" id="teamfenhong_jiandan_differential_pj">
												<input type="checkbox" name="info[teamfenhong_jiandan_differential_pj]" value="1" title="包含平级奖" lay-skin="primary" {if $info['teamfenhong_differential_pj'] == 1}checked{/if}/>
											</div>-->
											<div class="layui-form-mid layui-word-aux layui-clear">开启后见单分红将按照级差进行分红</div>
										</div>
									{/if}
  									{/if}
									<div class="layui-form-item">
										<label class="layui-form-label">多商户商品分红：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[fhjiesuanbusiness]" title="是" value="1" {if $info['fhjiesuanbusiness']==1}checked{/if}/>
											<input type="radio" name="info[fhjiesuanbusiness]" title="否" value="0" {if $info['fhjiesuanbusiness']==0}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">开启后多商户的商品也参与分红</div>
									</div>
									{/if}
								  {if getcustom('fenhong_max')}
								  <div class="layui-form-item">
									  <label class="layui-form-label">股东分红上限累加低级别：</label>
									  <div class="layui-input-inline" style="width:300px">
										  <input type="radio" name="info[fenhong_max_add]" title="是" value="1" {if $info['fenhong_max_add']==1}checked{/if}/>
										  <input type="radio" name="info[fenhong_max_add]" title="否" value="0" {if $info['fenhong_max_add']==0}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">开启后，当多个会员等级存在股东分红时，当前会员的分红上限和低级别等级分红上限累加</div>
								  </div>
								  {/if}
									  {if getcustom('partner_parent_only')}
									  <div class="layui-form-item">
										  <label class="layui-form-label">股东分红仅奖励购买人上级等级：</label>
										  <div class="layui-input-inline" style="width:300px">
											  <input type="radio" name="info[partner_parent_only]" title="是" value="1" {if $info['partner_parent_only']==1}checked{/if}/>
											  <input type="radio" name="info[partner_parent_only]" title="否" value="0" {if $info['partner_parent_only']==0}checked{/if}/>
										  </div>
										  <div class="layui-form-mid layui-word-aux layui-clear">开启后股东分红仅奖励购买人上级等级，其他等级不奖励，无上级也不奖励</div>
									  </div>
									  {/if}
									{if getcustom('partner_jiaquan') && $partner_jiaquan}
									<div class="layui-form-item">
										<label class="layui-form-label">股东加权分红：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[partner_jiaquan]" title="是" value="1" {if $info['partner_jiaquan']==1}checked{/if}/>
											<input type="radio" name="info[partner_jiaquan]" title="否" value="0" {if $info['partner_jiaquan']==0}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">开启后高等级的股东也会参与低等级的股东分红</div>
									</div>
									{/if}
								  {if getcustom('gdfenhong_add') && ($auth_data == 'all' || in_array('gdfenhong_add',$auth_data)) }
								  <div class="layui-form-item">
									  <label class="layui-form-label">股东分红叠加：</label>
									  <div class="layui-input-inline" style="width:300px">
										  <input type="radio" name="info[gdfenhong_add]" title="是" value="1" {if $info['gdfenhong_add']==1}checked{/if}/>
										  <input type="radio" name="info[gdfenhong_add]" title="否" value="0" {if $info['gdfenhong_add']==0}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">
										  1、开启后高等级的股东也会参与低等级的股东分红<br/>
										  2、高等级不参与低等级的人数计算，例：A股东分红=（A总分红/A人数）B股东分红=（A总分红/A人数+B总分红/B人数）<br/>
										  {if getcustom('partner_jiaquan') && $partner_jiaquan}
										  3、与《股东加权分红》冲突，不可同时开启
										  {/if}
									  </div>
								  </div>
								  {/if}
									{if getcustom('areafenhong_jiaquan')}
									<div class="layui-form-item">
										<label class="layui-form-label">区域代理加权分红：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[areafenhong_jiaquan]" title="是" value="1" {if $info['areafenhong_jiaquan']==1}checked{/if}/>
											<input type="radio" name="info[areafenhong_jiaquan]" title="否" value="0" {if $info['areafenhong_jiaquan']==0}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">开启后上级区域的区域代理也会参与下级区域的区域分红</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">区域判断方式：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[areafenhong_checktype]" title="收货地址" value="0" {if $info['areafenhong_checktype']==0}checked{/if}/>
											<input type="radio" name="info[areafenhong_checktype]" title="手机号归属地" value="1" {if $info['areafenhong_checktype']==1}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear"></div>
									</div>
									{/if}
									{if getcustom('partner_gongxian') && $partner_gongxian}
									<div class="layui-form-item">
										<label class="layui-form-label">股东贡献量分红：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[partner_gongxian]" title="是" value="1" {if $info['partner_gongxian']==1}checked{/if} lay-filter="partner_gongxian"/>
											<input type="radio" name="info[partner_gongxian]" title="否" value="0" {if $info['partner_gongxian']==0}checked{/if} lay-filter="partner_gongxian"/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">开启后可设置一定比例的分红金额按照股东的团队业绩量分红</div>
									</div>
									<div id="partner_gongxian_div" {if $info['partner_gongxian']==0}style="display:none"{/if}>
										<div class="layui-form-item">
											<label class="layui-form-label">预计股东贡献量分红：</label>
											<div class="layui-input-inline" style="width:200px">
												<input type="radio" name="info[gongxianfenhong_show]" title="显示" value="1" {if $info['gongxianfenhong_show']==1}checked{/if}/>
												<input type="radio" name="info[gongxianfenhong_show]" title="不显示" value="0" {if $info['gongxianfenhong_show']==0}checked{/if}/>
											</div>
											<div class="layui-form-mid">自定义名称</div>
											<div class="layui-input-inline" style="width:170px">
												<input type="text" name="info[gongxianfenhong_txt]" class="layui-input" value="{$info.gongxianfenhong_txt}">
											</div>
										</div>
									</div>
									{/if}
									  {if getcustom('business_agent')}
									  <div class="layui-form-item">
										  <label class="layui-form-label">推荐商家结算方式：</label>
										  <div class="layui-input-inline" style="width:400px">
											  <input type="radio" name="info[tjbusiness_jiesuan_type]" title="按结算金额" value="0" {if $info['tjbusiness_jiesuan_type']==0}checked{/if}/>
											  <input type="radio" name="info[tjbusiness_jiesuan_type]" title="按平台抽成金额" value="1" {if $info['tjbusiness_jiesuan_type']==1}checked{/if}/>
											  <input type="radio" name="info[tjbusiness_jiesuan_type]" title="按利润金额" value="2" {if $info['tjbusiness_jiesuan_type']==2}checked{/if}/>
										  </div>
										  <div class="layui-form-mid layui-word-aux layui-clear">结算金额为扣除平台抽成后商家所得金额，商家和平台结算完成后，推荐人获得{:t('佣金')} 按销售利润结算：（成交价格-商品成本）×提成百分比</div>
									  </div>
									  {/if}
									{if getcustom('teamyeji_show')}
									<div class="layui-form-item">
										<label class="layui-form-label">团队业绩：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[teamyeji_show]" title="显示" value="1" {if $info['teamyeji_show']==1}checked{/if}/>
											<input type="radio" name="info[teamyeji_show]" title="不显示" value="0" {if $info['teamyeji_show']==0}checked{/if}/>
										</div>

										<div class="layui-form-mid layui-word-aux layui-clear">前端我的佣金页面是否显示团队业绩</div>
									</div>
									  <div class="layui-form-item">
										  <label class="layui-form-label">团队业绩包含自身：</label>
										  <div class="layui-input-inline" style="width:300px">
											  <input type="radio" name="info[teamyeji_self]" title="包含" value="1" {if $info['teamyeji_self']==1}checked{/if}/>
											  <input type="radio" name="info[teamyeji_self]" title="不包含" value="0" {if $info['teamyeji_self']==0}checked{/if}/>
										  </div>

										  <div class="layui-form-mid layui-word-aux layui-clear">前端我的佣金页面是否显示团队业绩</div>
									  </div>
									<div class="layui-form-item">
										<label class="layui-form-label">团队总人数：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[teamnum_show]" title="显示" value="1" {if $info['teamnum_show']==1}checked{/if}/>
											<input type="radio" name="info[teamnum_show]" title="不显示" value="0" {if $info['teamnum_show']==0}checked{/if}/>
										</div>

										<div class="layui-form-mid layui-word-aux layui-clear">前端我的佣金页面是否显示团队总人数</div>
									</div>
									{/if}
								  <div class="layui-form-item">
									  <label class="layui-form-label">推荐人：</label>
									  <div class="layui-input-inline" style="width:300px">
										  <input type="radio" name="info[parent_show]" title="显示" value="1" {if $info['parent_show']==1}checked{/if}/>
										  <input type="radio" name="info[parent_show]" title="不显示" value="0" {if $info['parent_show']==0}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">前端我的佣金页面是否显示推荐人</div>
								  </div>
								 {if getcustom('business_agent')}
								  <div class="layui-form-item">
									  <label class="layui-form-label">推荐商家列表：</label>
									  <div class="layui-input-inline" style="width:300px">
										  <input type="radio" name="info[tjbusiness_show]" title="显示" value="1" {if $info['tjbusiness_show']==1}checked{/if}/>
										  <input type="radio" name="info[tjbusiness_show]" title="不显示" value="0" {if $info['tjbusiness_show']==0}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">前端我的佣金页面是否显示推荐商家列表</div>
								  </div>
								  {/if}
								  <div class="layui-form-item">
									  <label class="layui-form-label">{:t('团队分红')}：</label>
									  <div class="layui-input-inline" style="width:300px">
										  <input type="radio" name="info[teamfenhong_show]" title="显示" value="1" {if $info['teamfenhong_show']==1}checked{/if}/>
										  <input type="radio" name="info[teamfenhong_show]" title="不显示" value="0" {if $info['teamfenhong_show']==0}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">前端我的佣金页面是否显示{:t('团队分红')}</div>
								  </div>
								  {if getcustom('business_teamfenhong')}
								  <div class="layui-form-item">
									  <label class="layui-form-label">{:t('商家团队分红')}：</label>
									  <div class="layui-input-inline" style="width:300px">
										  <input type="radio" name="info[business_teamfenhong_show]" title="显示" value="1" {if $info['business_teamfenhong_show']==1}checked{/if}/>
										  <input type="radio" name="info[business_teamfenhong_show]" title="不显示" value="0" {if $info['business_teamfenhong_show']==0}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">前端我的佣金页面是否显示{:t('商家团队分红')}</div>
								  </div>
								  {/if}
								  <div class="layui-form-item">
									  <label class="layui-form-label">{:t('佣金')}明细：</label>
									  <div class="layui-input-inline" style="width:300px">
										  <input type="radio" name="info[commissionlog_show]" title="显示" value="1" {if $info['commissionlog_show']==1}checked{/if}/>
										  <input type="radio" name="info[commissionlog_show]" title="不显示" value="0" {if $info['commissionlog_show']==0}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">前端我的佣金页面是否显示{:t('佣金')}明细</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">{:t('佣金')}记录：</label>
									  <div class="layui-input-inline" style="width:300px">
										  <input type="radio" name="info[commissionrecord_show]" title="显示" value="1" {if $info['commissionrecord_show']==1}checked{/if}/>
										  <input type="radio" name="info[commissionrecord_show]" title="不显示" value="0" {if $info['commissionrecord_show']==0}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">前端我的佣金页面是否显示{:t('佣金')}记录</div>
								  </div>
								  <div class="layui-form-item">
									<label class="layui-form-label">{:t('佣金')}提现记录：</label>
									<div class="layui-input-inline" style="width:300px">
										<input type="radio" name="info[commissionrecord_withdrawlog_show]" title="显示" value="1" {if $info['commissionrecord_withdrawlog_show']==1}checked{/if}/>
										<input type="radio" name="info[commissionrecord_withdrawlog_show]" title="不显示" value="0" {if $info['commissionrecord_withdrawlog_show']==0}checked{/if}/>
									</div>
									<div class="layui-form-mid layui-word-aux layui-clear">前端佣金提现页面是否显示{:t('佣金')}提现记录</div>
								</div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">分红订单：</label>
									  <div class="layui-input-inline" style="width:300px">
										  <input type="radio" name="info[fhorder_show]" title="显示" value="1" {if $info['fhorder_show']==1}checked{/if}/>
										  <input type="radio" name="info[fhorder_show]" title="不显示" value="0" {if $info['fhorder_show']==0}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">前端我的佣金页面是否显示分红订单</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">分红记录：</label>
									  <div class="layui-input-inline" style="width:300px">
										  <input type="radio" name="info[fhlog_show]" title="显示" value="1" {if $info['fhlog_show']==1}checked{/if}/>
										  <input type="radio" name="info[fhlog_show]" title="不显示" value="0" {if $info['fhlog_show']==0}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">前端我的佣金页面是否显示分红记录</div>
								  </div>
								  <div class="layui-form-item">
									<label class="layui-form-label">分销订单：</label>
									<div class="layui-input-inline" style="width:300px">
										<input type="radio" name="info[fxorder_show]" title="显示" value="1" {if $info['fxorder_show']==1}checked{/if}/>
										<input type="radio" name="info[fxorder_show]" title="不显示" value="0" {if $info['fxorder_show']==0}checked{/if}/>
									</div>
									<div class="layui-form-mid layui-word-aux layui-clear">前端我的佣金页面是否显示分销订单</div>
								</div>
  								  {if getcustom('fenhong_jiaquan_bylevel')}
								  <div class="layui-form-item" style="display: flex;align-items: center;">
									  <label class="layui-form-label">加权分红结算比例：</label>
									  <div class="layui-input-inline" style="width:120px">
										  <input class="layui-input" name="info[fenhong_jqjs_rate]" id="fenhong_jqjs_rate" value="{$info.fenhong_jqjs_rate|default=0}">
									  </div>
									  <div class="layui-form-mid layui-word-aux">%,平台销售额的x%用于结算加权分红</div>
								  </div>
								  <div class="layui-form-item" style="display: flex;align-items: center;">
									  <label class="layui-form-label">加权分红结算时间：</label>
									  <div class="layui-form-mid"><input type="radio" name="jqtype" title="每天" value="0" checked /></div>
									  <div class="layui-input-inline" style="width:120px">
										  <select name="info[fenhong_jqjs_time]">
											  {for start='1' end='24'}
											  <option value="{$i}" {if $info.fenhong_jqjs_time==$i}selected{/if}>{$i}点</option>
											  {/for}
										  </select>
									  </div>
									  <div class="layui-form-mid layui-word-aux">每天x点发放前一天的加权分红</div>
								  </div>
  								  {/if}
								  {if getcustom('fenhong_money_weishu')}
								  <div class="layui-form-item">
									  <label class="layui-form-label">{:t('佣金')}小数位数：</label>
									  <div class="layui-input-inline layui-module-itemR">
										  <input type="number" min="2" max="6" name="info[fenhong_money_weishu]" class="layui-input" value="{$info.fenhong_money_weishu|default=2}">
											<div>位</div>
										</div>
									  <div class="layui-form-mid layui-word-aux layui-clear">产生佣金保留的小数位数，最大支持6位最小支持2位，默认2位</div>
								  </div>
								  {/if}
								  {if getcustom('commission_service_fee')}
								  <div class="layui-form-item">
									  <label class="layui-form-label">{:t('佣金')}平台服务费：</label>
									  <div class="layui-input-inline layui-module-itemR">
										  <input type="number" min="0" max="100" name="info[commission_service_fee]" class="layui-input" value="{$info.commission_service_fee|default=0}">
										  <div>%</div>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">产生{:t('佣金')}平台收取服务费比例，如设置10%，结算到{:t('会员')}佣金账户的金额为90%</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">移动端平台服务费：</label>
									  <div class="layui-input-inline" style="width:300px">
										  <input type="radio" name="info[commission_service_fee_show]" title="显示" value="1" {if $info['commission_service_fee_show']==1}checked{/if}/>
										  <input type="radio" name="info[commission_service_fee_show]" title="不显示" value="0" {if $info['commission_service_fee_show']==0}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">移动端{:t('佣金')}明细页面是否显示服务费</div>
								  </div>
								  {/if}
								  {if getcustom('product_baodan')}
								  <div class="layui-form-item">
									  <label class="layui-form-label">报单收益倍数：</label>
									  <div class="layui-input-inline layui-module-itemR">
										  <input type="number" min="1"  name="info[baodan_beishu]" class="layui-input" value="{$info.baodan_beishu|default=2}">
											<div>倍</div>
										</div>
									  <div class="layui-form-mid layui-word-aux layui-clear">收益的上限计算方式：报单产品的销售价格*数量*倍数</div>
								  </div>
								  {/if}
								{if getcustom('teamfenhong_max')}
								<div class="layui-form-item">
								  <label class="layui-form-label">团队分红上限：</label>
								  <div class="layui-input-inline" style="width:300px">
									  <input type="radio" name="info[teamfenhong_max_type]" title="不限制" value="0" {if $info['teamfenhong_max_type']==0}checked{/if}/>
									  <input type="radio" name="info[teamfenhong_max_type]" title="订单金额" value="1" {if $info['teamfenhong_max_type']==1}checked{/if}/>
								  </div>
								  <div class="layui-form-mid layui-word-aux layui-clear">订单金额类型：当前订单的团队分红达到订单金额时，不再进行分红</div>
								</div>
								{/if}
  							{if getcustom('teamfenhong_yueji')}
							  <div class="layui-form-item">
								  <label class="layui-form-label">平级奖仅限直推上级：</label>
								  <div class="layui-input-inline" style="width:300px">
									  <input type="radio" name="info[teamfenhong_yueji]" title="关" value="0" {if $info['teamfenhong_yueji']==0}checked{/if}/>
									  <input type="radio" name="info[teamfenhong_yueji]" title="开" value="1" {if $info['teamfenhong_yueji']==1}checked{/if}/>
								  </div>
								  <div class="layui-form-mid layui-word-aux layui-clear">开启后，当前{:t('会员')}级别不等于上级{:t('会员')}级别就不再发团队分红平级奖</div>
							  </div>
  							{/if}
						  {if getcustom('teamfenhong_pingji_yueji')}
						  <div class="layui-form-item">
							  <label class="layui-form-label">平级奖允许越级：</label>
							  <div class="layui-input-inline" style="width:300px">
								  <input type="radio" name="info[teamfenhong_pingji_yueji]" title="关" value="0" {if $info['teamfenhong_pingji_yueji']==0}checked{/if}/>
								  <input type="radio" name="info[teamfenhong_pingji_yueji]" title="开" value="1" {if $info['teamfenhong_pingji_yueji']==1}checked{/if}/>
							  </div>
							  <div class="layui-form-mid layui-word-aux layui-clear">关闭后中间有人级别越级后不享受团队分红平级奖</div>
						  </div>
						  {/if}
  								{if getcustom('commission_frozen')}
  								  {if $admin['commission_frozen']}
								  <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
									  <legend>扶持金</legend>
								  </fieldset>
								  <div class="layui-form-item">
									  <label class="layui-form-label">扶持金比例：</label>
									  <div class="layui-input-inline layui-module-itemR">
										  <input type="number" min="0" max="100" name="info[fuchi_percent]" class="layui-input" value="{$info.fuchi_percent}">
											<div>%</div>
										</div>
									  <div class="layui-form-mid layui-word-aux layui-clear">请输入0-100之间的数字，100代表全部；冻结{:t('会员')}获得{:t('佣金')}的百分比作为扶持金</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">扶持金参与等级：</label>
									  <div class="layui-input-inline" style="width:800px">
										  <input type="checkbox" name="info[fuchi_levelids][]" value="-1" title="所有人" lay-skin="primary" {if in_array('-1',explode(',',$info['fuchi_levelids']))}checked{/if} />
										  {foreach $levellist as $v}
										  <input type="checkbox" name="info[fuchi_levelids][]" value="{$v.id}" title="{$v.name}" lay-skin="primary" {if in_array($v['id'],explode(',',$info['fuchi_levelids']))}checked{/if}/>
										  {/foreach}
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">未选中等级不参与</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">解冻方式：</label>
									  <div class="layui-input-inline" style="width:400px">
										  <input type="radio" name="info[fuchi_unfrozen_type]" value="1" title="全部解冻" {if $info['fuchi_unfrozen_type']==1}checked{/if}/ lay-filter="diandaSwitchMulti">
										  <input type="radio" name="info[fuchi_unfrozen_type]" value="2" title="直推{:t('会员')}单线解冻" {if $info['fuchi_unfrozen_type']==2}checked{/if}/ lay-filter="diandaSwitchMulti">
									  </div>
								  </div>
								  <div class="layui-form-item commission_frozen">
									  <label class="layui-form-label">解冻条件：</label>
									  <div style="float:left; margin-left: 0;">
										  <div class="commission_frozen_row">
											  <input type="checkbox" name="info[fuchi_unfrozen][]" value="1" {if in_array('1',explode(',',$info['fuchi_unfrozen']))}checked{/if} title="" lay-skin="primary">
											  <div style="float:left;">
												  <div class="checkbox-text">伞下 <div class="layui-input-inline" style="width: 100px;float: none;">
													  <input type="text" name="info[fuchi_unfrozen1_num]" class="layui-input" value="{$info.fuchi_unfrozen1_num}">
												  </div>个,等级ID为<div class="layui-input-inline" style="width: 100px;margin-left:5px;float: none;">
													  <input type="text" name="info[fuchi_unfrozen1_levelid]" class="layui-input" value="{$info.fuchi_unfrozen1_levelid}">
												  </div>的{:t('会员')}</div>
											  </div>
										  </div>
										  <div diandaSwitchMulti="info[fuchi_unfrozen_type]" data-val="1" {if $info['fuchi_unfrozen_type'] != 1} style="display:none"{/if}>
											  <div class="commission_frozen_row">
												  <input type="checkbox" name="info[fuchi_unfrozen][]" value="2" {if in_array('2',explode(',',$info['fuchi_unfrozen']))}checked{/if}  title="" lay-skin="primary">
												  <div class="checkbox-text">直推脱离的所有{:t('会员')}等级ID升级为<div class="layui-input-inline" style="width: 100px;margin-left:5px;float: none;">
													  <input type="text" name="info[fuchi_unfrozen2_levelid]" class="layui-input" value="{$info.fuchi_unfrozen2_levelid}"></div></div>
											  </div>
									      </div>
										  <div diandaSwitchMulti="info[fuchi_unfrozen_type]" data-val="2" {if $info['fuchi_unfrozen_type'] != 2} style="display:none"{/if}>
											  <div class="commission_frozen_row">
												  <input type="checkbox" name="info[fuchi_unfrozen][]" value="3" {if in_array('3',explode(',',$info['fuchi_unfrozen']))}checked{/if}  title="" lay-skin="primary">
												  <div class="checkbox-text">直推{:t('会员')}等级ID升级为<div class="layui-input-inline" style="width: 100px;margin-left:5px;float: none;">
													  <input type="text" name="info[fuchi_unfrozen3_levelid]" class="layui-input" value="{$info.fuchi_unfrozen3_levelid}"></div></div>
											  </div>
										  </div>
									</div>
									<div class="layui-form-mid layui-word-aux layui-clear">解冻规则一次性设置好，不可随意改动（已解冻会员满足条件后不会再次冻结），等级ID多个用英文逗号分隔</div>
								  </div>
									  {/if}
								  {/if}

							  {if getcustom('commission_xiaofei')}
							  <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
								  <legend>{:t('冻结佣金')}</legend>
							  </fieldset>
							  <div class="layui-form-item">
								  <label class="layui-form-label">冻结{:t('佣金')}比例：</label>
								  <div class="layui-input-inline layui-module-itemR">
									  <input type="number" min="0" max="100" name="info[xiaofei_percent]" class="layui-input" value="{$info.xiaofei_percent}">
									  <div>%</div>
								  </div>
								  <div class="layui-form-mid layui-word-aux layui-clear">请输入0-100之间的数字，100代表全部；所有直推、间推、团队分红等收益{:t('佣金')}冻结，用于购买指定商品</div>
							  </div>
							  <div class="layui-form-item">
								  <label class="layui-form-label">{:t('冻结佣金')}参与等级：</label>
								  <div class="layui-input-inline" style="width:800px">
									  <input type="checkbox" name="info[xiaofei_levelids][]" value="-1" title="所有人" lay-skin="primary" {if in_array('-1',explode(',',$info['xiaofei_levelids']))}checked{/if} />
									  {foreach $levellist as $v}
									  <input type="checkbox" name="info[xiaofei_levelids][]" value="{$v.id}" title="{$v.name}" lay-skin="primary" {if in_array($v['id'],explode(',',$info['xiaofei_levelids']))}checked{/if}/>
									  {/foreach}
								  </div>
								  <div class="layui-form-mid layui-word-aux layui-clear">未选中等级不参与</div>
							  </div>

							  {/if}
								
								 {if getcustom('commissionranking')}
								 <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
										<legend>排行榜</legend>
									</fieldset>
									<div class="layui-form-item">
										<label class="layui-form-label">排行榜状态：</label>
										<div class="layui-input-inline" style="width:400px">
											<input type="radio" name="info[rank_status]" value="0" title="关闭" {if $info['rank_status']==0}checked{/if}/>
											<input type="radio" name="info[rank_status]" value="1" title="开启" {if $info['rank_status']==1}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">开启后，手机端佣金排行榜页面展示排行</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">排行榜类型：</label>
										<div class="layui-input-inline" style="width:400px">
											<input type="checkbox" name="info[rank_type][]" value="1" {if in_array('1',explode(',',$info['rank_type']))}checked{/if} title="累计佣金" lay-skin="primary">
											<input type="checkbox" name="info[rank_type][]" value="2" {if in_array('2',explode(',',$info['rank_type']))}checked{/if}  title="自购订单金额" lay-skin="primary">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">排行榜日期范围：</label>
										<div class="layui-input-inline" style="width:570px">
											<input type="radio" name="info[rank_date]" value="1" title="历史累计" {if $info['rank_date']==1}checked{/if}/>
											<input type="radio" name="info[rank_date]" value="2" title="自然周" {if $info['rank_date']==2}checked{/if}/>
											<input type="radio" name="info[rank_date]" value="3" title="自然月" {if $info['rank_date']==3}checked{/if}/>
											<input type="radio" name="info[rank_date]" value="4" title="近七日" {if $info['rank_date']==4}checked{/if}/>
											<input type="radio" name="info[rank_date]" value="5" title="近30天" {if $info['rank_date']==5}checked{/if}/>
										</div>							
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">排行榜显示人数：</label>
										<div class="layui-input-inline layui-module-itemR">
											<input type="text" name="info[rank_people]" class="layui-input" value="{$info.rank_people}">
											<div>人</div>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">请输入1-100之间的数字，0代表全部</div>
									</div>
								 {/if}
								  {if getcustom('fenhong_ranking')}
								  <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
									  <legend>分红排行榜</legend>
								  </fieldset>
								  <div class="layui-form-item">
									  <label class="layui-form-label">排行榜状态：</label>
									  <div class="layui-input-inline" style="width:400px">
										  <input type="radio" name="info[fenhong_rank_status]" value="0" title="关闭" {if $info['fenhong_rank_status']==0}checked{/if}/>
										  <input type="radio" name="info[fenhong_rank_status]" value="1" title="开启" {if $info['fenhong_rank_status']==1}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">开启后，手机端佣金排行榜页面展示排行</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">排行榜日期范围：</label>
									  <div class="layui-input-inline" style="width:570px">
										  <input type="radio" name="info[fenhong_rank_date]" value="1" title="历史累计" {if $info['fenhong_rank_date']==1}checked{/if}/>
										  <input type="radio" name="info[fenhong_rank_date]" value="2" title="自然周" {if $info['fenhong_rank_date']==2}checked{/if}/>
										  <input type="radio" name="info[fenhong_rank_date]" value="3" title="自然月" {if $info['fenhong_rank_date']==3}checked{/if}/>
										  <input type="radio" name="info[fenhong_rank_date]" value="4" title="近七日" {if $info['fenhong_rank_date']==4}checked{/if}/>
										  <input type="radio" name="info[fenhong_rank_date]" value="5" title="近30天" {if $info['fenhong_rank_date']==5}checked{/if}/>
									  </div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">排行榜显示人数：</label>
									  <div class="layui-input-inline layui-module-itemR">
										  <input type="text" name="info[fenhong_rank_people]" class="layui-input" value="{$info.fenhong_rank_people}">
											<div>人</div>
										</div>
									  <div class="layui-form-mid layui-word-aux layui-clear">请输入1-100之间的数字，0代表全部</div>
								  </div>
								  {/if}
								  {if getcustom('areafenhong_region_ranking')}
								  <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
									  <legend>区域代理排行榜</legend>
								  </fieldset>
								  <div class="layui-form-item">
									  <label class="layui-form-label">排行榜状态：</label>
									  <div class="layui-input-inline" style="width:400px">
										  <input type="radio" name="info[region_rank_status]" value="0" title="关闭" {if $info['region_rank_status']==0}checked{/if}/>
										  <input type="radio" name="info[region_rank_status]" value="1" title="开启" {if $info['region_rank_status']==1}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">开启后，手机端区域代理排行榜页面展示排行</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">时间范围：</label>
									  <div class="layui-inline">
										  <div class="layui-input-inline" style="width:300px;margin-left:0px">
											  <input type="text" name="info[region_ctime]" id="region_ctime" autocomplete="off" value="{$info.region_ctime} " class="layui-input">
										  </div>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">开启后，手机端区域代理排行榜页面展示排行</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">统计类型：</label>
									  <div class="layui-input-inline" style="width:800px">
										  <input type="checkbox" name="info[region_show_type][]" value="1" title="订单金额" lay-skin="primary" {if in_array('1',explode(',',$info['region_show_type']))}checked{/if} />
										  <input type="checkbox" name="info[region_show_type][]" value="2" title="订单数量" lay-skin="primary" {if in_array('2',explode(',',$info['region_show_type']))}checked{/if} />
									  </div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">区域代理参与等级：</label>
									  <div class="layui-input-inline" style="width:800px">
										  <input type="checkbox" name="info[region_rank_levelids][]" value="-1" title="所有人" lay-skin="primary" {if in_array('-1',explode(',',$info['region_rank_levelids']))}checked{/if} />
										  {foreach $levellist as $v}
										  <input type="checkbox" name="info[region_rank_levelids][]" value="{$v.id}" title="{$v.name}" lay-skin="primary" {if in_array($v['id'],explode(',',$info['region_rank_levelids']))}checked{/if}/>
										  {/foreach}
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">未选中等级不参与</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">排行榜显示人数：</label>
									  <div class="layui-input-inline layui-module-itemR">
										  <input type="text" name="info[region_rank_people]" class="layui-input" value="{$info.region_rank_people}">
										  <div>人</div>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">请输入1-100之间的数字，0代表全部</div>
								  </div>
								  {/if}
								  {if getcustom('score_ranking')}
								  <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
									  <legend>{:t('积分')}排行榜</legend>
								  </fieldset>
								  <div class="layui-form-item">
									  <label class="layui-form-label">排行榜状态：</label>
									  <div class="layui-input-inline" style="width:400px">
										  <input type="radio" name="info[score_rank_status]" value="0" title="关闭" {if $info['score_rank_status']==0}checked{/if}/>
										  <input type="radio" name="info[score_rank_status]" value="1" title="开启" {if $info['score_rank_status']==1}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">开启后，手机端佣金排行榜页面展示排行</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">排行榜日期范围：</label>
									  <div class="layui-input-inline" style="width:570px">
										  <input type="radio" name="info[score_rank_date]" value="1" title="历史累计" {if $info['score_rank_date']==1}checked{/if}/>
										  <input type="radio" name="info[score_rank_date]" value="2" title="自然周" {if $info['score_rank_date']==2}checked{/if}/>
										  <input type="radio" name="info[score_rank_date]" value="3" title="自然月" {if $info['score_rank_date']==3}checked{/if}/>
										  <input type="radio" name="info[score_rank_date]" value="4" title="近七日" {if $info['score_rank_date']==4}checked{/if}/>
										  <input type="radio" name="info[score_rank_date]" value="5" title="近30天" {if $info['score_rank_date']==5}checked{/if}/>
									  </div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">排行榜显示人数：</label>
									  <div class="layui-input-inline layui-module-itemR">
										  <input type="text" name="info[score_rank_people]" class="layui-input" value="{$info.score_rank_people}">
											<div>人</div>
										</div>
									  <div class="layui-form-mid layui-word-aux layui-clear">请输入1-100之间的数字，0代表全部</div>
								  </div>
								  {/if}
								  {if getcustom('member_gongxian')}
  									{if $admin['member_gongxian_status']}
								  <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
									  <legend>{:t('贡献')}</legend>
								  </fieldset>
								  <div class="layui-form-item">
									  <label class="layui-form-label">消费赠{:t('贡献')}：</label>
											<div class="layui-input-inline layui-module-itemL">
												<div>消费每满</div>
												<input type="text" name="info[gongxianin_money]" class="layui-input" value="{$info.gongxianin_money}">
												元
											</div>
											<div class="layui-input-inline layui-module-itemL">
												<div>赠送</div>
												<input type="text" name="info[gognxianin_value]" class="layui-input" value="{$info.gognxianin_value}">
												{:t('贡献')}
											</div>
									  <div class="layui-form-mid layui-word-aux layui-clear">支付后即到账</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">多商户商品不赠送：</label>
									  <div class="layui-input-inline" style="width:300px">
										  <input type="radio" name="info[gongxian_bonus_disable]" title="否" value="0" {if $info['gongxian_bonus_disable']==0}checked{/if}/>
										  <input type="radio" name="info[gongxian_bonus_disable]" title="是" value="1" {if $info['gongxian_bonus_disable']==1}checked{/if}/>
									  </div>
									  <div class="layui-form-mid layui-word-aux layui-clear">如果选择“是”，购买多商户商品将不参与赠送贡献值</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">有效期：</label>
									  <div class="layui-input-inline layui-module-itemR">
										  <input type="text" name="info[gongxian_days]" class="layui-input" value="{$info.gongxian_days}">
											<div>天</div>
										</div>
									  <div class="layui-form-mid layui-word-aux layui-clear">如设置的有效期为30天，则30天后过期</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">订单分配比例：</label>
									  <div class="layui-input-inline layui-module-itemR">
										  <input type="text" name="info[gongxian_percent]" class="layui-input" value="{$info.gongxian_percent}">
											<div>%</div>
										</div>
									  <div class="layui-form-mid layui-word-aux layui-clear">如设置10%，则拿出订单金额的10%计算分红</div>
								  </div>

								{/if}
  								{/if}

						  {if getcustom('touzi_fenhong')}
							  {if $admin['shareholder_status']}
							  <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
								  <legend>{:t('投资分红')}</legend>
							  </fieldset>
							  <div class="layui-form-item">
								  <label class="layui-form-label">分红结算方式：</label>
								  <div class="layui-input-inline" style="width:300px">
									  <input type="radio" name="info[touzi_fh_type]" title="按销售金额" value="0" {if $info['touzi_fh_type']==0}checked{/if}/>
									  <input type="radio" name="info[touzi_fh_type]" title="按销售利润" value="1" {if $info['touzi_fh_type']==1}checked{/if}/>
								  </div>
								  <div class="layui-form-mid layui-word-aux layui-clear">按销售金额结算即：销售价格×提成百分比，按销售利润即：（销售价格-商品成本）×提成百分比</div>
							  </div>
  								<div class="layui-form-item">
								  <label class="layui-form-label">分配比例：</label>
								  <div class="layui-input-inline layui-module-itemR">
									  <input type="text" name="info[touzi_fh_percent]" class="layui-input" value="{$info.touzi_fh_percent}">
										<div>%</div>
									</div>
								  <div class="layui-form-mid layui-word-aux layui-clear">如设置10%，则是本人投资额 ÷  
                                  所有人的投资额总和 x 订单销售额（或利润）x 10%</div>
							  </div>
							  {/if}
						  {/if}
  
								</div>
								<div class="layui-tab-item">
									{foreach $textset as $k=>$v}
									<div class="layui-form-item">
										<label class="layui-form-label">{$k}：</label>
										<div class="layui-input-inline">
											<input type="text" name="textset[{$k}]" class="layui-input" value="{$v}">
										</div>
										 {if $k=='购买数量'}
										<div class="layui-form-mid layui-word-aux"> 购买数量为预约详情的购买数量</div>
										{/if}
									</div>
									{/foreach}
								</div>
								<div class="layui-tab-item">
									{foreach $platform as $pl}
									<div class="layui-form-item">
										<label class="layui-form-label">{:getplatformname($pl)}：</label>
										<div class="layui-input-inline" style="width:{if $pl=='h5'}400px{else}550px{/if}">
											<input type="checkbox" name="info[logintype_{$pl}][]" title="注册登录" value="1" {if in_array('1',$info['logintype_'.$pl])}checked{/if}/>
											<input type="checkbox" name="info[logintype_{$pl}][]" title="手机号登录" value="2" {if in_array('2',$info['logintype_'.$pl])}checked{/if}/>
											{if $pl!='h5'}<input type="checkbox" name="info[logintype_{$pl}][]" title="授权登录" value="3" {if in_array('3',$info['logintype_'.$pl])}checked{/if}/>{/if}
											{if getcustom('googlelogin') && ($pl=='h5' || $pl=='app')}
											<input type="checkbox" name="info[logintype_{$pl}][]" title="Google登录" value="6" {if in_array('6',$info['logintype_'.$pl])}checked{/if}/>
											{/if}
											{if getcustom('sxpay_h5') && $pl=='h5'}
											<input type="checkbox" name="info[logintype_{$pl}][]" title="支付宝登录(仅支付宝内)" value="7" {if in_array('7',$info['logintype_'.$pl])}checked{/if}/>
											{/if}
										</div>
										{if getcustom('googlelogin') && $pl=='h5'}
										<div class="layui-form-mid">Google客户端ID</div>
										<div class="layui-input-inline" style="width:200px">
											<input type="text" name="info[google_client_id]" class="layui-input" value="{$info.google_client_id}">
										</div>
										{/if}
										<div class="layui-form-mid layui-word-aux layui-clear"></div>
									</div>
									{/foreach}
									
									{if in_array('wx',$platform)}
									<div class="layui-form-item">
										<label class="layui-form-label">设置头像昵称：</label>
										<div class="layui-input-inline" style="width:350px">
											<input type="radio" name="info[login_setnickname]" title="不需要设置" value="0" {if $info['login_setnickname']==0}checked{/if}/>
											<input type="radio" name="info[login_setnickname]" title="可选设置" value="1" {if $info['login_setnickname']==1}checked{/if}/>
											<input type="radio" name="info[login_setnickname]" title="强制设置" value="2" {if $info['login_setnickname']==2}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux">小程序端首次授权登录时是否提示设置头像昵称</div>
									</div>
									{/if}

									<div class="layui-form-item">
										<label class="layui-form-label">绑定手机号：</label>
										<div class="layui-input-inline" style="width:350px">
											<input type="radio" name="info[login_bind]" title="不绑定" value="0" {if $info['login_bind']==0}checked{/if}/>
											<input type="radio" name="info[login_bind]" title="可选绑定" value="1" {if $info['login_bind']==1}checked{/if}/>
											<input type="radio" name="info[login_bind]" title="强制绑定" value="2" {if $info['login_bind']==2}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux">授权登录时是否提示绑定手机号</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">强制登录：</label>
										<div class="layui-input-inline" style="width:500px">
											{foreach $platform as $pl}
											<input type="checkbox" name="login_mast[]" title="{:getplatformname($pl)}" value="{$pl}" {if in_array($pl,explode(',',$info['login_mast']))}checked{/if} lay-skin="primary"/>
											{/foreach}
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">开启后进入系统必须先登录</div>
									</div>
									{if getcustom('reg_invite_code')}
									<div class="layui-form-item">
										<label class="layui-form-label">注册邀请码：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[reg_invite_code]" title="开启" value="1" {if $info['reg_invite_code']==1}checked{/if}/>
											<input type="radio" name="info[reg_invite_code]" title="关闭" value="0" {if $info['reg_invite_code']==0}checked{/if}/>
											<input type="radio" name="info[reg_invite_code]" title="强制邀请" value="2" {if $info['reg_invite_code']==2}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">通过邀请链接注册时展示邀请人信息，不能输入邀请码，强制邀请时必须邀请才能注册</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">邀请码类型：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[reg_invite_code_type]" title="手机号" value="0" {if $info['reg_invite_code_type']==0}checked{/if}/>
											<input type="radio" name="info[reg_invite_code_type]" title="邀请码" value="1" {if $info['reg_invite_code_type']==1}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux"></div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">注册审核：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[reg_check]" title="关闭" value="0" {if $info['reg_check']==0}checked{/if}/>
											<input type="radio" name="info[reg_check]" title="开启" value="1" {if $info['reg_check']==1}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux"></div>
									</div>
									{/if}

									{if getcustom('member_auto_addlogin')}
									<div class="layui-form-item">
										<label class="layui-form-label">游客自动注册会员：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="info[is_member_auto_addlogin]" title="开启" value="1" {if $info['is_member_auto_addlogin']==1}checked{/if}/>
											<input type="radio" name="info[is_member_auto_addlogin]" title="关闭" value="0" {if $info['is_member_auto_addlogin']==0}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">开启后会员自动添加和登录 实现不需要登录系统购买商城商品，支付后填写收货地址，商城使用</div>
									</div>
									{/if}
									{if getcustom('app_reg')}
									<div class="layui-form-item">
										<label class="layui-form-label">app注冊跳转连接：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="text" name="info[appurl]" value="{$info['appurl']}" class="layui-input">
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">app后注册后跳转连接，不填写默认跳转到{:t('会员')}中心</div>
									</div>
									{/if}
									{if getcustom('update_member_pid')}
									<div class="layui-form-item">
										<label class="layui-form-label">修改推荐人：</label>
										<div class="layui-form-mid">推荐人ID为</div>
										<div class="layui-input-inline" style="width:100px">
											<input type="text" name="info[pid_origin]" value="{$info['pid_origin']}" class="layui-input">
										</div>
										<div class="layui-form-mid">的新用户，按顺序分给</div>
										<div class="layui-input-inline" style="width:200px">
											<input type="text" name="info[pid_new]" class="layui-input" value="{$info.pid_new}" placeholder="新推荐人ID">
										</div>
										<div class="layui-form-mid">当前分配位置</div>
										<div class="layui-input-inline" style="width:100px">
											<input type="text" name="info[pid_new_pos]" class="layui-input" value="{$info.pid_new_pos}" placeholder="">
										</div>
										<div class="layui-form-mid layui-word-aux layui-clear">多个新推荐人ID使用英文“,”间隔，分配位置默认从1开始</div>
									</div>
									{/if}
								</div>

								<div class="layui-tab-item">
									<div class="layui-form-item">
										<label class="layui-form-label">用户注册协议：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="radio" name="xyinfo[status]" title="开启" value="1" {if $xyinfo['status']==1}checked{/if}/>
											<input type="radio" name="xyinfo[status]" title="关闭" value="0" {if $xyinfo['status']==0}checked{/if}/>
										</div>
										<div class="layui-form-mid layui-popover layui-default-link">
											示例
											<div class="layui-popover-div">
												<img src="__STATIC__/admin/img/dianda_xieyi.png"/>
											</div>
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">注册协议名称：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="text" name="xyinfo[name]" value="{$xyinfo['name']}" class="layui-input">
										</div>
										<div class="layui-form-mid layui-word-aux"></div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">注册协议内容：</label>
										<div class="layui-input-inline" style="width:500px">
											<script id="xycontent" name="xyinfo[content]" type="text/plain" style="width:100%;height:400px">{$xyinfo.content}</script>
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">隐私政策名称：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="text" name="xyinfo[name2]" value="{$xyinfo['name2']}" class="layui-input">
										</div>
										<div class="layui-form-mid layui-word-aux"></div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">隐私政策内容：</label>
										<div class="layui-input-inline" style="width:500px">
											<script id="xycontent2" name="xyinfo[content2]" type="text/plain" style="width:100%;height:400px">{$xyinfo.content2}</script>
										</div>
									</div>
								</div>

								<div class="layui-tab-item">
									<div class="layui-form-item">
										<label class="layui-form-label">附件存储类型：</label>
										<div class="layui-input-inline" style="width:300px">
											<select name="rinfo[type]" lay-filter="changetype">
												<option value="0" {if $rinfo['type']==0}selected{/if}>跟随平台附件设置</option>
												{if $rinfo['type']==1}<option value="1" {if $rinfo['type']==1}selected{/if}>本地存储</option>{/if}
												<option value="2" {if $rinfo['type']==2}selected{/if}>阿里云</option>
												<option value="3" {if $rinfo['type']==3}selected{/if}>七牛云</option>
												<option value="4" {if $rinfo['type']==4}selected{/if}>腾讯云</option>
											</select>
										</div>
									</div>
									<div id="aliossset" {if $rinfo['type']!=2}style="display:none"{/if}>
										<div class="layui-form-item">
											<label class="layui-form-label">Access Key ID：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[alioss][key]" value="{$rinfo['alioss']['key']}" class="layui-input">
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">Access Key Secret：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[alioss][secret]" value="{$rinfo['alioss']['secret']}" class="layui-input">
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">Bucket名称：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[alioss][bucket]" value="{$rinfo['alioss']['bucket']}" class="layui-input">
											</div>
											<div class="layui-form-mid layui-word-aux">空间名称</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">EndPoint（地域节点）</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[alioss][ossurl]" value="{$rinfo['alioss']['ossurl']}" class="layui-input">
											</div>
											<div class="layui-form-mid layui-word-aux">如：oss-cn-qingdao.aliyuncs.com</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">Bucket域名：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[alioss][url]" value="{$rinfo['alioss']['url']}" class="layui-input">
											</div>
											<div class="layui-form-mid layui-word-aux">开头须加https://</div>
										</div>
									</div>
									<div id="qiniuset" {if $rinfo['type']!=3}style="display:none"{/if}>
										<div class="layui-form-item">
											<label class="layui-form-label">Accesskey：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[qiniu][accesskey]" value="{$rinfo['qiniu']['accesskey']}" class="layui-input">
											</div>
											<div class="layui-form-mid layui-word-aux">在密钥管理中查找</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">Secretkey：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[qiniu][secretkey]" value="{$rinfo['qiniu']['secretkey']}" class="layui-input">
											</div>
											<div class="layui-form-mid layui-word-aux">在密钥管理中查找</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">Bucket：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[qiniu][bucket]" value="{$rinfo['qiniu']['bucket']}" class="layui-input">
											</div>
											<div class="layui-form-mid layui-word-aux">空间名称</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">Url：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[qiniu][url]" value="{$rinfo['qiniu']['url']}" class="layui-input">
											</div>
											<div class="layui-form-mid layui-word-aux">开头须加https://</div>
										</div>
										  {if getcustom('qiniu_transcode')}
										  <div class="layui-form-item">
											  <label class="layui-form-label">转码：</label>
											  <div class="layui-input-inline" style="width:300px">
												  <input type="radio" name="rinfo[qiniu][transcode]" value="" {if $rinfo[qiniu][transcode]==''}checked{/if} title="关闭">
												  <input type="radio" name="rinfo[qiniu][transcode]" value="webp" {if $rinfo[qiniu][transcode]=='webp'}checked{/if} title="webp">
											  </div>
											  <div class="layui-form-mid layui-word-aux"></div>
										  </div>
										  {/if}
									</div>
									<div id="cosset" {if $rinfo['type']!=4}style="display:none"{/if}>
										<div class="layui-form-item">
											<label class="layui-form-label">APPID：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[cos][appid]" value="{$rinfo['cos']['appid']}" class="layui-input">
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">SecretID：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[cos][secretid]" value="{$rinfo['cos']['secretid']}" class="layui-input">
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">SecretKEY：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[cos][secretkey]" value="{$rinfo['cos']['secretkey']}" class="layui-input">
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">Bucket：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[cos][bucket]" value="{$rinfo['cos']['bucket']}" class="layui-input">
											</div>
											<div class="layui-form-mid layui-word-aux">存储桶名称</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">bucket所属地域：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[cos][local]" value="{$rinfo['cos']['local']}" class="layui-input">
											</div>
											<div class="layui-form-mid layui-word-aux">地域代码，如：ap-beijing</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">Url：</label>
											<div class="layui-input-inline" style="width:300px">
												<input type="text" name="rinfo[cos][url]" value="{$rinfo['cos']['url']}" class="layui-input">
											</div>
											<div class="layui-form-mid layui-word-aux">开头须加https://</div>
										</div>
									</div>
								  {if getcustom('file_size_limit')}
  									{if $remote['file_limit_user'] == 1}
								  <div class="layui-form-item">
									  <label class="layui-form-label">图片上传限制：</label>
									  <div class="layui-input-inline layui-module-itemR">
										  <input type="number" step="1" min="0" max="1000" name="info[file_image_limit]" value="{$info['file_image_limit']}" class="layui-input">
											<div>MB</div>
									  </div>
									  <div class="layui-form-mid layui-word-aux">单个文件上传大小限制，0为不限制</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">视频上传限制：</label>
									  <div class="layui-input-inline layui-module-itemR">
										  <input type="number" step="1" min="0" max="10000" name="info[file_video_limit]" value="{$info['file_video_limit']}" class="layui-input">
											<div>MB</div>
									  </div>
									  <div class="layui-form-mid layui-word-aux">单个文件上传大小限制，0为不限制</div>
								  </div>
								  <div class="layui-form-item">
									  <label class="layui-form-label">其他上传限制：</label>
									  <div class="layui-input-inline layui-module-itemR">
										  <input type="number" step="1" min="0" max="10000" name="info[file_other_limit]" value="{$info['file_other_limit']}" class="layui-input">
											<div>MB</div>
									  </div>
									  <div class="layui-form-mid layui-word-aux">图片和视频外的其他文件，单个文件上传大小限制，0为不限制</div>
								  </div>
  									{/if}
								  {if $remote['file_upload_limit'] > 0 && in_array($rinfo['type'],[0,1]) && $admin['file_upload_limit'] >= 0}
								  <div class="layui-form-item remotePercent">
									  <label class="layui-form-label">附件空间：</label>
									  {if $admin['file_upload_limit'] == 0 || $admin['file_upload_limit'] == ''}
									  <div class="layui-form-mid" style="width:100px;font-weight:bold">{:round($admin['file_upload_total']/1024/1024,2)}MB/{$remote['file_upload_limit']}MB</div>
									  <div style="clear: both; padding-top: 10px;padding-left: 160px; width: 360px;">
										  <div class="layui-progress" lay-showpercent="true">
											  <div class="layui-progress-bar" lay-percent="{:round($admin['file_upload_total']/1024/1024/$remote['file_upload_limit'],4)*100}%"></div>
										  </div>
									  </div>
									  {else}
									  <div class="layui-form-mid" style="width:100px;font-weight:bold">{:round($admin['file_upload_total']/1024/1024,2)}MB/{$admin['file_upload_limit']}MB</div>
									  <div style="clear: both; padding-top: 10px;padding-left: 160px; width: 360px;">
										  <div class="layui-progress" lay-showpercent="true">
											  <div class="layui-progress-bar" lay-percent="{:round($admin['file_upload_total']/1024/1024/$admin['file_upload_limit'],4)*100}%"></div>
										  </div>
									  </div>
									  {/if}
								  </div>
								  {/if}
								  {/if}
								</div>

								{if getcustom('jushuitan')}
								{if $admin['jushuitan_status']==1}
								<div class="layui-tab-item">
									<div class="layui-form-item">
										<div style="padding-left:20px;font-weight:bold">一、填写聚水潭信息</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">App Key：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="text" name="info[jushuitankey]" value="{$info['jushuitankey']}" class="layui-input">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">App Secret：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="text" name="info[jushuitansecret]" value="{$info['jushuitansecret']}" class="layui-input">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">店铺编号：</label>
										<div class="layui-input-inline" style="width:300px">
											<input type="text" name="info[shop_id]" value="{$info['shop_id']}" class="layui-input">
										</div>
										<div class="layui-form-mid layui-word-aux">店铺如何创建，可查看操作 <a href="http://www.erp321.com/app/support/document.html#page=1865" target="_blank">http://www.erp321.com/app/support/document.html#page=1865</a></div>
									</div>
									<div class="layui-form-item">
										<div style="padding-left:20px;font-weight:bold">二、配置回调域名</div>
									</div>
									<div class="layui-form-item" style="margin-bottom:0">
										<div class="layui-form-mid" style="margin-left:40px;">登录聚水潭开放平台(https://open.jushuitan.com/)在[消息管理]-[订阅消息]-[开启订阅]，登录（https://www.erp321.com/epaas） 聚水潭ERP中的[店铺设置]配置回调域名：详细说明:<a href="https://open.jushuitan.com/document/2119.html" target='_blank'>请点击这里</a></div>
									</div>
									<div class="layui-form-item" style="margin-bottom:0">
										<label class="layui-form-label">回调域名：</label>
										<div class="layui-form-mid" style="width:200px;font-weight:bold">{$Think.const.PRE_URL2}/notify2.php</div>
										<div class="layui-form-mid layui-word-aux"></div>
									</div>
  								</div>
							  {/if}
							  {/if}
							  <!--loading 图标End-->
							  <div class="layui-tab-item">
								  <!--<div class="layui-form-item">
									  <label class="layui-form-label" style="width:100px">加载样式：</label>
									  <div class="layui-input-inline" style="40%">
										  <input type="radio" name="info[loading_style]" title="样式一" value="0" {if !$info['loading_style'] || $info['loading_style']===0}checked{/if} lay-filter='loadingStyle' />
										  <input type="radio" name="info[loading_style]" title="样式二" value="1" {if $info['loading_style']==1}checked{/if} lay-filter='loadingStyle' />
									  </div>
								  </div>-->
								  <div class="layui-form-item">
									  <label class="layui-form-label" style="width: 100px !important">加载图标：</label>
									  <input type="hidden" name="info[loading_icon]" value="{$info.loading_icon}" id="loading_icon">
									  <button style="float:left;" type="button" class="layui-btn layui-btn-primary" onclick="uploaderLoading(this)" >上传图标</button>

									  <div class="ldPicList" style="float:left;padding-top:10px;padding-left:130px;clear: both;">
										  <div class="loading-main-box">
											  <div class="loadingpic-box active">
											  <div class="loading-img" onclick="loadImgPreview(this)">
												  <img id="loading_icon_img" src="{$info.loading_icon}?v={:time()}">
											  </div>
											  <div class="loading-preview">
											  <img id="loading_icon_preview" class="animation{$info.loading_style}" height="120" width="120" src="{$info.loading_icon}?v={:time()}">
										  </div>
									  </div>
											  <div class="layui-form-mid layui-word-aux">
												  <span style="color: #cc0000">* </span>可自定义上传，最大尺寸：100×100像素；支持格式：png；
												  <br><span style="color: #cc0000">* </span>修改图标后，需清理前端缓存！</div>
								  </div>
								  </div>
								</div>
								  <div class="layui-form-item">
									  <label class="layui-form-label" style="width: 100px !important;">选择图标：</label>
									 <div class="layui-form-mid">以下加载案例可供选择</div>
									  <div id="ldPicList" class="ldPicList" style="float:left;padding-top:10px;padding-left:130px;clear: both;">
										  {foreach $info['loading_pics'] as $ldkey=>$pic}
										  <div class="loading-main-box">
											  <div class="loadingpic-box">
												  <div class="loading-img" onclick="loadImgPreview(this)">
													  <img src="{$pic}">
												  </div>
												  <div class="loading-preview" style="display:none">
													  <img class="animation0" height="120" width="120" src="{$pic}">
												  </div>
											  </div>
										  </div>
										  {/foreach}
									  </div>
								  </div>
							  </div>
							  <!--loading 图标End-->

							  <!--loading 系统信息s-->
							  <div class="layui-tab-item">
								<div class="layui-form-item" style="margin-top:30px">
									<label class="layui-form-label">系统名称</label>
									<div class="layui-input-inline" style="width:300px">
										<input type="text" name="webinfo[webname]" value="{$webinfo.webname}" lay-verType="tips" class="layui-input">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">LOGO</label>
									<div class="layui-input-inline" style="width:300px">
										<input type="text" name="webinfo[logo]" id="webinfologo" class="layui-input" value="{$webinfo['logo']}">
									</div>
									<button style="float:left;" type="button" class="layui-btn layui-btn-primary" onclick="uploader(this)" upload-input="webinfologo" upload-preview="logoPreview">上传图片</button>
									<div class="layui-form-mid layui-word-aux" style="margin-left:10px;">建议尺寸：108×108像素</div>
									<div id="logoPreview" style="float:left;padding-top:10px;margin-left:160px;clear: both;">
										<div class="layui-imgbox"><div class="layui-imgbox-img"><img src="{$webinfo['logo']}"/></div></div>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">ico图标</label>
									<div class="layui-input-inline" style="width:300px">
										<input type="text" name="webinfo[ico]" id="ico" class="layui-input" value="{$webinfo['ico']}">
									</div>
									<button style="float:left;" type="button" class="layui-btn layui-btn-primary" onclick="uploader(this)" upload-input="ico" upload-preview="icoPreview">上传图片</button>
									<div class="layui-form-mid layui-word-aux" style="margin-left:10px;"></div>
									<div id="icoPreview" style="float:left;padding-top:10px;margin-left:160px;clear: both;">
										<div class="layui-imgbox" style="width:44px;height:44px"><div class="layui-imgbox-img"><img src="{$webinfo['ico']}"/></div></div>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">登录页背景图</label>
									<div class="layui-input-inline" style="width:300px">
										<input type="text" name="webinfo[adminloginbg]" id="adminloginbg" class="layui-input" value="{$webinfo['adminloginbg']}">
									</div>
									<button style="float:left;" type="button" class="layui-btn layui-btn-primary" onclick="uploader(this)" maxwidth="2500" maxheight="2000" upload-input="adminloginbg" upload-preview="adminloginbgPreview">上传图片</button>
									<div class="layui-form-mid layui-word-aux" style="margin-left:10px;">建议尺寸：1920×1080像素</div>
									<div id="adminloginbgPreview" style="float:left;padding-top:10px;margin-left:160px;clear: both;">
										<div class="layui-imgbox" style="width:144px;height:90px"><div class="layui-imgbox-img"><img src="{$webinfo['adminloginbg']}"/></div></div>
									</div>
								</div>
								
								<div class="layui-form-item">
									<label class="layui-form-label">版权设置</label>
									<div class="layui-input-inline" style="width:300px">
										<input type="text" name="webinfo[copyright]" class="layui-input" value="{$webinfo.copyright}"/>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">备案号</label>
									<div class="layui-input-inline" style="width:300px">
										<input type="text" name="webinfo[beian]" class="layui-input" value="{$webinfo.beian}"/>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">公安备案文字</label>
									<div class="layui-input-inline" style="width:300px">
										<input type="text" name="webinfo[copyright2]" class="layui-input" value="{$webinfo.copyright2}" placeholder="公网安备1001号"/>
									</div>
									<div class="layui-form-mid layui-word-aux" style="margin-left:10px;">官网底部显示</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">公安备案号</label>
									<div class="layui-input-inline" style="width:300px">
										<input type="text" name="webinfo[beian2]" class="layui-input" value="{$webinfo.beian2}" placeholder="1001"/>
									</div>
									<div class="layui-form-mid layui-word-aux" style="margin-left:10px;">点击“公安备案文字”跳转链接，拼接此备案号</div>
								</div>
							  </div>
							  <!--loading 系统信息end-->

							</div>
						</div>

						<div class="layui-form-item">
							<label class="layui-form-label"></label>
							<div class="layui-input-block">
								<button class="layui-btn" lay-submit lay-filter="formsubmit">提 交</button>
							</div>
						</div>
					</div>
				</div>
      </div>
    </div>
  </div>
	{include file="public/js"/}
	<script>
	var ueditor = UE.getEditor('xycontent',{imageScaleEnabled:false});
	var ueditor2 = UE.getEditor('xycontent2',{imageScaleEnabled:false});
	function choosezuobiao(){
		var address = $("input[name='info[address]']").val();
		var longitude = $("input[name='info[longitude]']").val();
		var latitude = $("input[name='info[latitude]']").val();
		var choosezblayer = layer.open({type:2,shadeClose: true,area: ['800px', '560px'],'title': '选择坐标',content: "{:url('DesignerPage/choosezuobiao')}&address="+(address?address:"")+"&jd="+(longitude?longitude:"")+"&wd="+(latitude?latitude:""),btn:['确定','取消'],yes:function(index, layero){
			var longitude = layero.find('iframe').contents().find('#mapjd').val();
			var latitude = layero.find('iframe').contents().find('#mapwd').val();
			$("input[name='info[longitude]']").val(longitude);
			$("input[name='info[latitude]']").val(latitude);
			layer.close(choosezblayer);
		}});
	}
	//日期范围选择
	layui.laydate.render({
		elem: '#region_ctime',
		trigger: 'click',
		type:'date',
		range: '~' //或 range: '~' 来自定义分割字符
	});
	layui.form.on('radio(set_yuebao)', function(data){
		if(data.value == '1'){
			$('#yuebaoset').show();
		}else{
			$('#yuebaoset').hide();
		}
	})

	layui.form.on('radio(invoice)', function(data){
		if(data.value == '1'){
			$('#invoice-set').show();
		}else{
			$('#invoice-set').hide();
		}
	})
	layui.form.on('radio(fhjiesuantime_type)', function(data){
		if(data.value == '1'){
			$('#fhjiesuantime_type-set').hide();
		}else{
			$('#fhjiesuantime_type-set').show();
		}
	})
	layui.form.on('radio(pay_transfer)', function(data){
		if(data.value == '0'){
			$('#pay_transfer_set').hide();
		}else{
			$('#pay_transfer_set').show();
		}
	})
	layui.form.on('radio(alipayset)', function(data){
		if(data.value == '0'){
			$('#alipayset').hide();
		}else{
			$('#alipayset').show();
		}
	})
	layui.form.on('radio(withdraw)', function(data){
		if(data.value == '1'){
			$('#withdrawotherset').show();
		}else{
			$('#withdrawotherset').hide();
		}
	})
	layui.form.on('radio(yuebao_withdraw)', function(data){
		if(data.value == '1'){
			$('#yuebaowithdrawotherset').show();
		}else{
			$('#yuebaowithdrawotherset').hide();
		}
	})
	layui.form.on('radio(rechargeyj_withdraw)', function(data){
		if(data.value == '1'){
			$('#rechargeyjwithdrawotherset').show();
		}else{
			$('#rechargeyjwithdrawotherset').hide();
		}
	})
	layui.form.on('radio(comwithdraw)', function(data){
		if(data.value == '1'){
			$('#comwithdrawotherset').show();
		}else{
			$('#comwithdrawotherset').hide();
		}
	})

	layui.form.on('radio(daifu)', function(data){
		if(data.value == '1'){
			$('#daifu-desc').show();
		}else{
			$('#daifu-desc').hide();
		}
	})

	{if getcustom('money_dec')}
		layui.form.on('radio(moneydec)', function(data){
			if(data.value == '1'){
				$('#money_dec').show();
			}else{
				$('#money_dec').hide();
			}
		})
	{/if}

	{if getcustom('fenhong_jiaquan_bylevel')}
		layui.laydate.render({
			elem: '#fenhong_jqjs_time',
			trigger: 'click',
			type:'time'
		});
	{/if}

	
	layui.form.on('radio(score_withdraw)', function(data){
		if(data.value == '1'){
			$('#score_withdraw_div').show();
		}else{
			$('#score_withdraw_div').hide();
		}
	})
		layui.form.on('radio(score_to_money)', function(data){
			if(data.value == '1'){
				$('#score_to_money_div').show();
			}else{
				$('#score_to_money_div').hide();
			}
		})
	layui.form.on('radio(wxkfset)', function(data){
		$('#wxkfcorpid').hide();
		$('#wxkfurl').hide();
		$('.wxkf1set').hide();
		if(data.value == '1'){
			$('.wxkf1set').show();
		}else if(data.value == '2'){
			$('#wxkfcorpid').show();
			$('#wxkfurl').show();
		}else{
			$('#wxkfurl').show();
		}
	})
	layui.form.on('radio(partner_gongxian)', function(data){
		if(data.value == '1'){
			$('#partner_gongxian_div').show();
		}else{
			$('#partner_gongxian_div').hide();
		}
	})

	layui.form.on('radio(ali_withdraw)', function(data){
		if(data.value == '1'){
			$('#aliWithdrawSet').show();
		}else{
			$('#aliWithdrawSet').hide();
		}
	})

	layui.form.on('submit(formsubmit)', function(obj){
		var field = obj.field
		if(field['info[logo]'] == ''){
			dialog('请上传商家LOGO',0);return;
		}
		if(!field['info[withdraw_weixin]'])  field['info[withdraw_weixin]'] = 0
		if(!field['info[withdraw_bankcard]'])  field['info[withdraw_bankcard]'] = 0
		if(!field['info[withdraw_aliaccount]'])  field['info[withdraw_aliaccount]'] = 0
		if(!field['info[scorebdkyf]'])  field['info[scorebdkyf]'] = 0
		if(!field['info[wxkf]'])  field['info[wxkf]'] = 0
		{if getcustom('teamfenhong_pingji') && ($auth_data == 'all' || in_array('teamfenhong_pingji',$auth_data))}
		if(!field['info[teamfenhong_differential_pj]'])  field['info[teamfenhong_differential_pj]'] = 0
		{/if}

		field['xyinfo[content]'] = ueditor.getContent();
		field['xyinfo[content2]'] = ueditor2.getContent();

		//哪个选项卡 用于刷新后保持
		var tabindex = 0;
		$('.layui-tab-title>li').each(function(i,v){
			if($(this).hasClass('layui-this')){
				tabindex = i;
				console.log(i)
				return false;
			}
		})
		field.tabindex = tabindex;
		var index = layer.load();
		$.post('',field,function(data){
			layer.close(index);
			dialog(data.msg,data.status,data.url);
		})
	})

	layui.form.on('checkbox(gettjset)', function(data){
		console.log(data)
		if(data.elem.checked){
			$('#gettjset').hide();
		}else{
			$('#gettjset').show();
		}
	})
	layui.form.on('select(changetype)',function(data){
		$('#aliossset').hide()
		$('#qiniuset').hide()
		$('#cosset').hide()
		$('.remotePercent').hide()
		if(data.value==0 || data.value==1){
			$('.remotePercent').show()
		}
		if(data.value==2){
			$('#aliossset').show()
		}
		if(data.value==3){
			$('#qiniuset').show()
		}
		if(data.value==4){
			$('#cosset').show()
		}
	})

		layui.form.on('radio(shopmode)',function (data){
			var shopmode = data.value;
			if(shopmode==2){
				$('#mode_2').show()
			}else{
				$('#mode_2').hide()
			}
			if(shopmode ==1){
		        $('#mode_1').show();
			}else {
				$('#mode_1').hide();
			}
		
		})
		layui.form.on('radio(maidan_fenhong)',function (data){
			var val = data.value;
			if(val==0){
				$('.maidan_fenhong').hide()
			}else{
				$('.maidan_fenhong').show()
			}


		})
		layui.form.on('radio(loc_range_type)',function (data){
			var loc_range_type = data.value;
			console.log(loc_range_type)
			if(loc_range_type==1){
				$('#loc_range_block').show()
			}else{
				$('#loc_range_block').hide()
			}
		})

	
	var chooseUrlField = '';
	function chooseUrl2(field){
		chooseUrlField = field;
		layer.open({type:2,shadeClose:true,area:['1100px', '650px'],'title':'选择链接',content:"{:url('DesignerPage/chooseurl')}&callback=chooseLink2"})
	}
	function chooseLink2(urlname,url){
		$("#"+chooseUrlField).val(url);
	}
		function loadImgPreview(obj){
			// var loading_style = $('input[name="info[loading_style]"]:checked').val();
			var loading_style = 0;
			$('#ldPicList .loading-preview>img').each(function(){
				$(this).removeClass().addClass('animation'+loading_style);
			})
			// $(obj).closest('.loading-main-box').siblings().find('.loadingpic-box').removeClass('active')
			// $(obj).closest('.loading-main-box').find('.loadingpic-box').addClass('active');
			$(obj).closest('.loading-main-box').siblings().find('.loading-preview').hide()
			$(obj).closest('.loading-main-box').find('.loading-preview').show();
			var icon = $(obj).closest('.loading-main-box').find('.loading-preview>img').attr('src');
			$('#loading_icon').val(icon)
			$('#loading_icon_img').attr('src',icon)
			$('#loading_icon_preview').attr('src',icon)
		}
		layui.form.on('radio(loadingStyle)', function(data){
			$('#ldPicList .loading-preview>img').each(function(){
				$(this).removeClass().addClass('animation'+data.value);
			})
		})
		layui.form.on('radio(is_fugou_commission)', function(data){
			if(data.value==1){
				$('#fugouBox').show()
			}else{
				$('#fugouBox').hide()
			}
		})
		function uploaderLoading(obj,tabs){
			var multi = false
			var loading_style = 0;
			if(!tabs){
				tabs = {'browser':'active','selecticon':''};
			}
			var maxwidth = 100;
			if($(obj).attr('maxwidth')){
				maxwidth = $(obj).attr('maxwidth')
			}
			var maxheight = 100;
			if($(obj).attr('maxheight')){
				maxheight = $(obj).attr('maxheight')
			}
			fileUploader.show(function(imgs,ret) {
				if (imgs.length == 0) {
					return;
				}else{
					$('#loading_icon').val(imgs[0].url)
					$('#loading_icon_img').attr('src',imgs[0].url)
					$('#loading_icon_preview').attr('src',imgs[0].url)
				}
			},{type: 'image',direct: false,maxheight:maxheight,maxwidth:maxwidth,multi: true,tabs:tabs,other_param:''});
		}

		{if getcustom('commission_butie')}
		layui.form.on('radio(fx_butie_type)', function(data){
			if(data.value == '1'){
				$('.fx-butie-send-day').hide();
				$('.fx-butie-send-week').show();
			}else{
				$('.fx-butie-send-day').show();
				$('.fx-butie-send-week').hide();
			}
		})
		{/if}

  </script>


	{include file="public/copyright"/}
</body>
</html>